from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) doc = "" class Constants(BaseConstants): name_in_url = "STERO_copy" players_per_group = 2 num_rounds = 1 new_template = "STERO_copy/new.html" class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gender = models.StringField( blank=True, choices=[["1 ", "Male "], ["2", "Female"]], label="1) What is your gender?", ) religion = models.IntegerField( choices=[ [ 1, "Atheist (a person who disbelieves or lacks belief in the existence of God or gods)", ], [ 2, "Agnostic (a person who believes that nothing is known or can be known of the existence or nature of God.)", ], [3, "Hindu"], [4, "Sikh"], [5, "Jain"], [6, "Buddisht"], [7, "Muslim"], [8, "Zoroastrain"], [9, "Christian"], [10, "None of the above"], ], label="5) Which religious group do you most closely identify with? Please select one.", ) age = models.IntegerField( blank=True, label="2) What is your age? (in completed years)", max=35, min=18 ) trust_strangers = models.FloatField( choices=[ [1, "1 - No trust at all"], [2, "2 - Slight trust"], [3, "3 - Moderate trust"], [4, "4 - A lot of trust"], ], label="1) How much do you trust strangers you meet for the first time?", ) Risk_aversion = models.StringField( choices=[ ["1", "1 - Not at all willing to take risks"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"], ["6", "6"], ["7", "7"], ["8", "8"], ["9", "9"], ["10", "10"], ["11", "11 - Very willing to take risks"], ], label="5) Are you, generally speaking, a person who is fully prepared to take risks, or do you try to avoid taking risks?", ) Betrayal_aversion = models.StringField( choices=[ ["1", "1 - Not at all true about me"], ["2", "2 - Slightly true about me"], ["3", "3 - Moderately true about me"], ["4", "4 - Totally true about me"], ], label="2) If you suffer a serious wrong, you will take revenge as soon as possible, no matter what the costs.", ) Betrayal_aversion1 = models.StringField( choices=[ ["1", "1 - Not at all true about me"], ["2", "2 - Slightly true about me"], ["3", "3 - Moderately true about me"], ["4", "4 - Totally true about me"], ], label="3) If someone offends you, you will also offend him/her.", ) volunteer = models.StringField( choices=[["1", "Yes"], ["2", "No"]], label="4) Have you ever volunteered for social service activities outside of course requirements or outside of reasons for career advancement?", ) caste = models.StringField( choices=[["1", "SC/ST"], ["2", "OBC"], ["3", "Other caste"], ["4", "Cannot say"]], label="4) What is your caste?", ) Income = models.StringField( choices=[ ["1", "Poor (less than 1 lakh per annum)."], ["2", "Lower middle class (1 lakh to 5 lakhs per annum)."], ["3", "Middle class (5 lakhs to 10 lakhs per annum)."], ["4", "Upper middle class (10 lakhs to 50 lakhs per annum)."], ["5", "Rich (greater than 50 lakhs per annum). "], ["6", "Cannot say"], ], label="3) Which (family) income class do you most closely identify with?", ) scale1 = models.StringField( choices=[ ["1", "1 - Not at all true of me"], ["2", "2 - Slightly true of me."], ["3", "3 - Moderately true of me."], ["4", "4 - Totally true of me."], ], label="1) I often read books/magazines/websites about my faith :", ) scale2 = models.StringField( choices=[ ["1", "1 - Not at all true of me"], ["2", "2 - Slightly true of me."], ["3", "3 - Moderately true of me."], ["4", "4 - Totally true of me."], ], label="2) I make (or will make when I start earning) financial contributions to my religious organization :", ) scale3 = models.StringField( choices=[ ["1", "1 - Not at all true of me"], ["2", "2 - Slightly true of me."], ["3", "3 - Moderately true of me."], ["4", "4 - Totally true of me."], ], label="3) I spend time trying to understand my faith :", ) scale4 = models.StringField( choices=[ ["1", "1 - Not at all true of me"], ["2", "2 - Slightly true of me."], ["3", "3 - Moderately true of me."], ["4", "4 - Totally true of me."], ], label="4) Religion is especially important to me because it answers many questions about the meaning of life :", ) scale5 = models.StringField( choices=[ ["1", "1 - Not at all true of me"], ["2", "2 - Slightly true of me."], ["3", "3 - Moderately true of me."], ["4", "4 - Totally true of me."], ], label="5) My religious beliefs lie behind my whole approach to life :", ) scale6 = models.StringField( choices=[ ["1", "1 - Not at all true of me"], ["2", "2 - Slightly true of me."], ["3", "3 - Moderately true of me."], ["4", "4 - Totally true of me."], ], label="6) I enjoy spending time with others of my religious affiliation :", ) scale7 = models.StringField( choices=[ ["1", "1 - Not at all true of me"], ["2", "2 - Slightly true of me."], ["3", "3 - Moderately true of me."], ["4", "4 - Totally true of me."], ], label="7) It is important to me to spend periods of time in private religious thought and reflection :", ) scale8 = models.StringField( choices=[ ["1", "1 - Not at all true of me"], ["2", "2 - Slightly true of me."], ["3", "3 - Moderately true of me."], ["4", "4 - Totally true of me."], ], label="8) I enjoy working in the activities of my religious affiliation :", ) scale9 = models.StringField( choices=[ ["1", "1 - No at all true of me"], ["2", "2 - Slightly true of me."], ["3", "3 - Moderately true of me."], ["4", "4 - Totally true of me."], ], label="9) I participate in festivals/ perform rituals (such as visiting temple, church, gurudwada, mosque; fasting on certain days) pertaining to my religion :", )