from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Ralph Wachter' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'my_simple_survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): def creating_session(self): for p in self.get_players(): p.payoff = c(10) class Group(BaseGroup): pass class Player(BasePlayer): # Demographic age = models.IntegerField(label="What is your age?") nationality = models.StringField(label="What is your nationality?") gender = models.StringField(label="What gender do you identify as?", choices=[["Male","Male"],["Female","Female"]]) relationship = models.StringField(label="What is your relationship status?", choices=[["Single","Single"],["In a relationship","In a relationship"],["Married","Married"],["Divorced","Divorced"],["Widowed","Widowed"]]) living_situation = models.StringField(label="What is your current living situation?", choices=[["Alone","Alone"],["Partner","Partner"],["Shared apartment","Shared apartment"], ["Parents","Parents"], ["Other","Other"]]) # General Trust Scale Q1 = models.StringField(label="Most people are basically honest.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree","Strongly Disagree"],["Disagree","Disagree"],["Neutral","Neutral"],["Agree","Agree"],["Strongly Agree","Strongly Agree"]]) Q2 = models.StringField(label="Most people are trustworthy.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q3 = models.StringField(label="Most people are basically good and kind.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q4 = models.StringField(label="Most people are trustful of others.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q5 = models.StringField(label="I am trustful.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q6 = models.StringField(label="Most people will respond in kind when they are trusted by others.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) # Caution Scale Q7 = models.StringField(label="No matter what they say, most people inwardly dislike putting themselves out to help others.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q8 = models.StringField(label="People are always interested only in their own welfare.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q9 = models.StringField(label="There are many hypocrites in this society.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q10 = models.StringField(label="In this society, one does not need to be constantly afraid to being cheated.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q11 = models.StringField(label="One can avoid failing into trouble by assuming that all people have a vicious streak.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q12 = models.StringField(label="People usually do not trust others as much as they say they do.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q13 = models.StringField(label="In this society, one has to be alert or someone is likely to take advantage of you.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"],["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) # Knowledge-Based Trust Scale Q14 = models.StringField(label="I trust a person I know well more than one whom I don´t know.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q15 = models.StringField(label="Whatever work I have to perform, I fell more secure when I work with someone I know well than with someone I don´t know.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q16 = models.StringField(label="Generally, a person with whom you have had a longer relationship is likely to help you when you need it.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q17 = models.StringField(label="The people I trust are those with whom I have had long-lasting relationships.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) # Utility of Relations Scale Q18 = models.StringField(label="If were going to buy a used car, I would feel more comfortable buying it from a salesperson whom a friend had introduced me to in person rather than from a salesperson who is a total stranger.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q19 = models.StringField(label="When negotiating over an important issue with a total stranger it is very important to have a personal introduction by some you know well.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q20 = models.StringField(label="A doctor examines a patient more carefully than usual if the patient has been referred by a personal acquaintance.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) # Reputation Scale Q21 = models.StringField(label="A person´s reputation is not very useful in judging his or her true character.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q22 = models.StringField(label="One should not be overly concerned with his or her own reputation if one wants to accomplish something meaningful.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q23 = models.StringField(label="Having a good reputation is most important for success in business.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q24 = models.StringField(label="Most people refrain from dishonest conduct to avoid getting a bad reputation.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) # Honesty Scale Q25 = models.StringField(label="I don´t want to miss out on good opportunities while trying to be fair to others.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q26 = models.StringField(label="Telling a lie can be justified depending on the circumstance.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q27 = models.StringField(label="I don´t want to act dishonestly under any circumstances.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q28 = models.StringField(label="I am mindful not to forget the spirit of fair play under any circumstances.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q29 = models.StringField(label="Being overly concerned about fairness deprives a society of its rigor.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) # Moral Scale Q30 = models.StringField(label="I often wonder what secret reason someone else has to do me a favor.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q31 = models.StringField(label="Most people are honest mostly out of fear of being caught.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q32 = models.StringField(label="Most make friends because friends may be useful to them.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q33 = models.StringField(label="If mankind continues on its reprehensible path, it will likely have to destroy God.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q34 = models.StringField(label="People today are generally more violent and immoral than earlier.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]]) Q35 = models.StringField(label="Current crime and sexual immorality make it inevitable to be harder on certain people if we want to uphold our moral principles.", widget=widgets.RadioSelectHorizontal, choices=[["Strongly Disagree", "Strongly Disagree"], ["Disagree", "Disagree"], ["Neutral", "Neutral"], ["Agree", "Agree"], ["Strongly Agree", "Strongly Agree"]])