from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, ) author = 'Karthik' doc = """ Questionnaire for chat """ class Constants(BaseConstants): name_in_url = 'ChatWithoutMoodQuestionnaire' players_per_group = None num_rounds = 1 chat_instruction_template = 'ChatWithoutMoodQuestionnaire/ChatInstruction.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): competent = models.PositiveIntegerField(choices=[[1, '1.非常无能'], [2, '2.无能'], [3, '3.比较无能'], [4, '4.中等'], [5, '5.较为能干'], [6, '6.能干'], [7, '7.非常能干']], widget=widgets.RadioSelectHorizontal()) ignorant = models.PositiveIntegerField(choices=[[1, '1.非常无知'], [2, '2.无知'], [3, '3.较为无知'], [4, '4.中等'], [5, '5.较为知识渊博'], [6, '6.知识渊博'], [7, '7.非常知识渊博']], widget=widgets.RadioSelectHorizontal()) responsible = models.PositiveIntegerField(choices=[[1, '1.非常不负责任'], [2, '2.不负责任'], [3, '3.较为不负责任'], [4, '4.中等'], [5, '5.较为负责任'], [6, '6.负责任'], [7, '7.非常负责任']], widget=widgets.RadioSelectHorizontal()) intelligent = models.PositiveIntegerField(choices=[[1, '1.非常不聪明'], [2, '2.不聪明'], [3, '3.比较不聪明'], [4, '4.中等'], [5, '5.较为聪明'], [6, '6.聪明'], [7, '7.非常聪明']], widget=widgets.RadioSelectHorizontal()) sensible = models.PositiveIntegerField(choices=[[1, '1.非常愚笨'], [2, '2.愚笨'], [3, '3.比较愚笨'], [4, '中等'], [5, '5.较为理智'], [6, '理智'], [7, '7.非常理智']], widget=widgets.RadioSelectHorizontal()) closeness = models.PositiveIntegerField(min=1, max=7)