from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '' class Constants(BaseConstants): name_in_url = 'Survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female']], label='2) Sex', widget=widgets.RadioSelect) age = models.IntegerField(blank=True, label='1) Age') residence = models.StringField(blank=True, label='3) What is your current residence? (Town and Province)') town_birth = models.StringField(blank=True, label='4) What is your town of birth (Town and Province)?') education = models.StringField(choices=[['Phd', 'Phd'], ["Master's Degree", "Master's Degree"], ["Bachelor's Degree", "Bachelor's Degree"], ['High school Diploma', 'High school Diploma'], ['Middle school', 'Middle school'], ['Elementary school', 'Elementary school']], label='\ufeff\ufeff\ufeff5) Highest education level') religious = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='6) Are you religious?', widget=widgets.RadioSelect) work = models.StringField(choices=[['Employed', 'Employed'], ['Unemployed', 'Unemployed'], ['Student', 'Student'], ['Retired', 'Retired'], ['Not looking for a job', 'Not looking for a job']], label='7) Working condition') mother_birthplace = models.StringField(blank=True, label="8) What is your mother's birthplace? (Town and Province)") father_birthplace = models.StringField(blank=True, label="9) What is your father's birthplace? (Town and Province)") elementary = models.StringField(blank=True, label='10) Where did you attend elementary school? (Town and Province)') association = models.IntegerField(blank=True, label='Are you a member of some leisure or professional association, sport club, church or similar? [Insert number]') important_ass = models.StringField(blank=True, label='2) Of all these groups to which you or members of your household belong, which one is the most important to your household? ') close_friends = models.IntegerField(blank=True, label='3) About how many close friends do you have these days? These are people you feel at ease with, can talk to about private matters, or call on for help [insert number]') people_borrow = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='', widget=widgets.RadioSelectHorizontal) trust = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='', widget=widgets.RadioSelectHorizontal) trust_ethn = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='People from the same ethnicity', widget=widgets.RadioSelectHorizontal) trust_otherethn = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='People from another ethnicity', widget=widgets.RadioSelectHorizontal) trust_officier = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='Local government officials (Municipality)', widget=widgets.RadioSelectHorizontal) trust_governoffic = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='Central government officials ', widget=widgets.RadioSelectHorizontal) trust_police = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='Police/fire department/ambulance', widget=widgets.RadioSelectHorizontal) trust_teachers = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='Teachers', widget=widgets.RadioSelectHorizontal) trust_strangers = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='Strangers', widget=widgets.RadioSelectHorizontal) variety_neigh = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='', widget=widgets.RadioSelectHorizontal) help = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='', widget=widgets.RadioSelectHorizontal) timepg = models.BooleanField(choices=[[True, 'Will contribute time'], [False, 'Will not contribute time']], label='Time', widget=widgets.RadioSelectHorizontal) money = models.BooleanField(choices=[[True, '\ufeffWill contribute money'], [False, 'Will not contribute money']], label='Money', widget=widgets.RadioSelectHorizontal) meeting = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Attend a village/neighborhood council meeting, hearing or discussion?\t', widget=widgets.RadioSelectHorizontal) politician = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Met with a politician, called him/her, or sent him/her a letter?\t', widget=widgets.RadioSelectHorizontal) protest = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Participated in a protest or demonstration?', widget=widgets.RadioSelectHorizontal) campaign = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Participated in an information or election campaign?\t', widget=widgets.RadioSelectHorizontal) altered = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Alerted newspaper, radio or TV to a local problem?\t', widget=widgets.RadioSelectHorizontal) notified = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Notified police or court about a local problem?\t', widget=widgets.RadioSelectHorizontal) hosted = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Hosted or tried to host a meeting in which get your local government to pay attention to something that concerned you? \t\t\t\t\t\t', widget=widgets.RadioSelectHorizontal) vote = models.IntegerField(choices=[[1, 'Yes'], [2, 'No'], [3, 'Was not eligible '], [4, 'I was not allowed to vote, because of my age']], label='11) Lots of people find it difficult to get out and vote. Did you vote in the last local election?', widget=widgets.RadioSelect) blood = models.IntegerField(choices=[[1, 'Yes'], [2, 'No'], [3, 'I cannot donate for medical reasons'], [4, 'I was not allowed to donate blood, because of my age']], label='12) Have you made a blood donation in the last 12 months?', widget=widgets.RadioSelect) benefits = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='Claiming government benefits to which you are not entitled', widget=widgets.RadioSelectHorizontal) fare = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='Avoiding a fare on public transport', widget=widgets.RadioSelectHorizontal) tax = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='Cheating on taxes if you have a chance', widget=widgets.RadioSelectHorizontal) bribe = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6']], label='Someone accepting a bribe in the course of their duties', widget=widgets.RadioSelectHorizontal) corruption = models.IntegerField(choices=[[1, 'Almost no Public Officials are engaged in it'], [2, 'A few Public Officials are engaged in it'], [3, '\ufeff\ufeffMost Public Officials are engaged in it'], [4, 'Almost all Public Officials are engaged in it']], label='14) How widespread do you think bribe taking and corruption is in this country?', widget=widgets.RadioSelect) instruction = models.LongStringField(blank=True, label='1) Were the instructions clear?') strategy = models.LongStringField(blank=True, label='2) What strategies did you use?') theme = models.LongStringField(blank=True, label='3) What do you think this experiment was about?')