from otree.api import * # dog for emotional support doc = """ |\_/| | @ @ Woof! | <> _ | _/\------____ ((| |)) | `--' | ____|_ ___| |___.' /_/_____/____/_______| """ class C(BaseConstants): NAME_IN_URL = 'bigfive_UG_effort' # experiment needs two person groups PLAYERS_PER_GROUP = 2 NUM_ROUNDS = 1 # make a budget so can change it later if we have to class Subsession(BaseSubsession): pass def bigfive(label): return models.IntegerField(label=label, choices=[1,2,3,4,5], widget=widgets.RadioSelect) class Group(BaseGroup): pass class Player(BasePlayer): Q1 = bigfive('...is reserved') Q2 = bigfive('...is generally trusting') Q3 = bigfive('...tends to be lazy') Q4 = bigfive('...is relaxed, handles stress well') Q5 = bigfive('...has few artistic interests') Q6 = bigfive('...is outgoing, sociable') Q7 = bigfive('...tends to find fault with others') Q8 = bigfive('...does a thorough job') Q9 = bigfive('...gets nervous easily') Q10 = bigfive('...has an active imagination') class Instruction(Page): pass class BigFive(Page): form_model='player' form_fields = ['Q1', 'Q2', 'Q3', 'Q4', 'Q5', 'Q6', 'Q7', 'Q8', 'Q9', 'Q10' ] class DecisionWaitPage(WaitPage): pass page_sequence = [Instruction, BigFive]