from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'preferences' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gps19 = models.IntegerField(choices=[[0, '0 - completely unwilling to do so'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - very willing to do so']], label='How willing are you to punish someone who treats you unfairly, even if there may be costs for you?', widget=widgets.RadioSelectHorizontal) gps20 = models.IntegerField(choices=[[0, '0 - completely unwilling to do so'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - very willing to do so']], label='How willing are you to punish someone who treats others unfairly, even if there may be costs for you?', widget=widgets.RadioSelectHorizontal) gps21 = models.IntegerField(choices=[[0, ' 0 - completely unwilling to do so'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - very willing to do so']], label='How willing are you to give to good causes without expecting anything in return?', widget=widgets.RadioSelectHorizontal) gps22 = models.IntegerField(choices=[[0, '0 - does not describe me at all'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - describes me perfectly']], label='When someone does me a favor, I am willing to return it.', widget=widgets.RadioSelectHorizontal) gps23 = models.IntegerField(choices=[[0, '0 - does not describe me at all'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - describes me perfectly']], label='If I am treated very unjustly, I will take revenge at the first occasion, even if there is a cost to do so.', widget=widgets.RadioSelectHorizontal) gps24 = models.IntegerField(choices=[[0, '0 - does not describe me at all'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - describes me perfectly']], label='I assume that people have only the best intentions.', widget=widgets.RadioSelectHorizontal) gps58 = models.IntegerField(choices=[[1, 'No, would not give present'], [2, 'The present worth 4 RMB'], [3, 'The present worth 8 RMB'], [4, 'The present worth 12 RMB'], [5, 'The present worth 16 RMB'], [6, 'The present worth 20 RMB'], [7, 'The present worth 24 RMB']], label='Which present do you give to the stranger?', widget=widgets.RadioSelectHorizontal) gps59 = models.IntegerField(label='How much of this amount would you donate to a good cause?', max=800, min=0) class Gps_19to21(Page): form_model = 'player' form_fields = ['gps19', 'gps20', 'gps21'] class Gps_22to25(Page): form_model = 'player' form_fields = ['gps22', 'gps23', 'gps24'] class Gps_58(Page): form_model = 'player' form_fields = ['gps58'] class Gps_59(Page): form_model = 'player' form_fields = ['gps59'] page_sequence = [Gps_19to21, Gps_22to25, Gps_58, Gps_59]