from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) doc = "" class Constants(BaseConstants): name_in_url = "Quest" players_per_group = None num_rounds = 1 instructions_template = "Quest/instructions.html" class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gender = models.StringField( choices=[["Male", "Male"], ["Female", "Female"], ["Diverse", "Diverse"]], label="Gender:", widget=widgets.RadioSelectHorizontal ) birth = models.IntegerField( label="Year of birth in [YYYY]", min=1990, max=2002 ) height = models.IntegerField( label="Height in cm", min=140, max=210 ) weight = models.IntegerField( label="Weight in kg", min=35, max=140 ) school = models.StringField( choices=[ ["1", "No formal education"], ["2", "Primary school"], [ "3", "Lower secondary (secondary education completed does not allow entry to university: end of obligatory school but also short programs (less than 2 years))", ], ["4", "Upper secondary (programs that allows entry to university)"], [ "5", "Post secondary, non-tertiary (other upper secondary programs toward the labour market or technical formation)", ], [ "6", "Lower level tertiary, first stage (also technical schools at a tertiary level)", ], ["7", "Upper level tertiary (Master, Dr.)"], ], label="Your education:" ) fatheduc = models.StringField( choices=[ ["1", "No formal education"], ["2", "Primary school"], [ "3", "Lower secondary (secondary education completed does not allow entry to university: end of obligatory school but also short programs (less than 2 years))", ], ["4", "Upper secondary (programs that allows entry to university)"], [ "5", "Post secondary, non-tertiary (other upper secondary programs toward the labour market or technical formation)", ], [ "6", "Lower level tertiary, first stage (also technical schools at a tertiary level)", ], ["7", "Upper level tertiary (Master, Dr.)"], ], label="Father's education:" ) motheduc = models.StringField( choices=[ ["1", "No formal education"], ["2", "Primary school"], [ "3", "Lower secondary (secondary education completed does not allow entry to university: end of obligatory school but also short programs (less than 2 years))", ], ["4", "Upper secondary (programs that allows entry to university)"], [ "5", "Post secondary, non-tertiary (other upper secondary programs toward the labour market or technical formation)", ], [ "6", "Lower level tertiary, first stage (also technical schools at a tertiary level)", ], ["7", "Upper level tertiary (Master, Dr.)"], ], label="Mother's education:" ) doingmoment = models.StringField( choices=[ ["Student", "Student"], ["Employed", "Employed"], ["Self-employed", "Self-employed"], ["Unemployed", "Unemployed"], ], label="What are you doing at the moment? ", ) income = models.StringField( choices=[ ["1", "€0"], ["2", "€1 to €450"], ["3", "€451 to €900"], ["4", "€901 to €1350"], ["5", "€1351 to €1800"], ["6", "€1801 to €2250"], ["7", "€2251 to €2700"], ["8", "€2701 and greater"], ], label="Which of these describes your personal monthly income (brutto) a month?", ) family = models.StringField( choices=[["1", "Single"], ["2", "Married"], ["3", "Divorced"], ["4", "Widowed"]], label="Family status:", ) health = models.StringField( choices=[ ["1", "Not good"], ["2", "Satisfactory"], ["3", "Good"], ["4", "Very good"], ], label="How would you describe your current state of health?", ) conditions = models.StringField( choices=[ ["Yes, a lot.", "Yes, a lot."], ["Yes, a little.", "Yes, a little."], ["No, not at all.", "No, not at all."], ], label="Do any of your conditions or illnesses reduce your ability to carry-out day-to-day activities?", ) exercise = models.StringField( choices=[[">5", "5 days and/or more"], ["3-4", "3-4 days"], ["1-3", "1-3 days"], ["0", "I don't exercise"]], label="How many days do you usually exercise a week?", ) r1 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="1. ... take risks?", widget=widgets.RadioSelectHorizontal, ) r2 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="2. ... avoid risks?", widget=widgets.RadioSelectHorizontal, ) r3 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="3. ... give up on something that is beneficial for you today in order to benefit more from that in the future?", widget=widgets.RadioSelectHorizontal, ) r4 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="4. ... punish someone who treats you (!) unfairly, even if there might be disadvantages for you?", widget=widgets.RadioSelectHorizontal, ) r5 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="5. ...punish someone who treats others (!) unfairly, even if there might be disadvantages for you?", widget=widgets.RadioSelectHorizontal, ) r6 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="6. ... help someone without expecting anything in return?", widget=widgets.RadioSelectHorizontal, ) r7 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="7. ... cheat subtantially on your income tax (Steuererklärung)?", widget=widgets.RadioSelectHorizontal, ) r8 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="8. ... forge (fälschen) somebody's signature?", widget=widgets.RadioSelectHorizontal, ) r9 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="9. ... present somebody else's work as your own?", widget=widgets.RadioSelectHorizontal, ) r10 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="10. ... go on vacation in a third-world country without a pre-arranged travel route and without booking accomodations ahead?", widget=widgets.RadioSelectHorizontal, ) r11 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="11. ... argue with a friend who has a very different opinion on an issue?", widget=widgets.RadioSelectHorizontal, ) r12 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="12. ... ask your boss for a raise?", widget=widgets.RadioSelectHorizontal, ) r13 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="13. ... illegally copy a piece of software?", widget=widgets.RadioSelectHorizontal, ) r14 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="14. ... gamble away a week's income at a casino?", widget=widgets.RadioSelectHorizontal, ) r15 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="15. ... take a job that you like instead of a job that is very reputable but that you like less?", widget=widgets.RadioSelectHorizontal, ) r16 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="16. ... openly express an opinion or viewpoint that is unpopular but of which you are convinced?", widget=widgets.RadioSelectHorizontal, ) r17 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="1. ...important decisions in life?", widget=widgets.RadioSelectHorizontal, ) r18 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="2. ...your professional career.", widget=widgets.RadioSelectHorizontal, ) r19 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="3. ...leisure and sports?", widget=widgets.RadioSelectHorizontal, ) r20 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="4. ...behavior in road traffic?", widget=widgets.RadioSelectHorizontal, ) r21 = models.IntegerField( choices=[ [0, "0"], [1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"], [6, "6"], [7, "7"], [8, "8"], [9, "9"], [10, "10"], ], label="5. ...dealing with other people?", widget=widgets.RadioSelectHorizontal, ) time1 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="1. I often think of what I should have done differently in my life", widget=widgets.RadioSelectHorizontal, ) time2 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="2. I think about the good things that I have missed out on in my life", widget=widgets.RadioSelectHorizontal, ) time3 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="3.I think about the bad things that have happened to me in the past", widget=widgets.RadioSelectHorizontal, ) time4 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="4.It gives me pleasure to think about my past", widget=widgets.RadioSelectHorizontal, ) time5 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="5. Since whatever will be will be, it does not really matter what I do", widget=widgets.RadioSelectHorizontal, ) time6 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="6. It does not make sense to worry about the future, since there is nothing that I can do about it anyway", widget=widgets.RadioSelectHorizontal, ) time7 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="7. It is important to put excitement in my life", widget=widgets.RadioSelectHorizontal, ) time8 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="8. I take risks to put excitement in my life ", widget=widgets.RadioSelectHorizontal, ) time9 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="9. I often feel that I cannot fulfill my obligations to friends and authorities", widget=widgets.RadioSelectHorizontal, ) time10 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="10. Usually, I do not know how I will be able to fulfill my goals in life", widget=widgets.RadioSelectHorizontal, ) time11 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="11. When I want to achieve something, I set goals and consider specific means for reaching those goals", widget=widgets.RadioSelectHorizontal, ) time12 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="12. I complete projects on time by making steady progress", widget=widgets.RadioSelectHorizontal, ) time13 = models.IntegerField( choices=[ [1, "very uncharacteristic"], [2, "uncharacteristic"], [3, "neutral"], [4, "characteristic"], [5, "very characteristic"], ], label="13. I am able to resist temptations when I know that there is work to be done ", widget=widgets.RadioSelectHorizontal, ) bf1 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... is reserved.", widget=widgets.RadioSelectHorizontal, ) bf2 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... is generally trusting.", widget=widgets.RadioSelectHorizontal, ) bf3 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... tends to be lazy.", widget=widgets.RadioSelectHorizontal, ) bf4 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... is relaxed, handles stress well.", widget=widgets.RadioSelectHorizontal, ) bf5 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... has few artistic interests.", widget=widgets.RadioSelectHorizontal, ) bf6 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... is outgoing, sociable.", widget=widgets.RadioSelectHorizontal, ) bf7 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... tends to find fault with others.", widget=widgets.RadioSelectHorizontal, ) bf8 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... does a thorough job.", widget=widgets.RadioSelectHorizontal, ) bf9 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... gets nervous easily.", widget=widgets.RadioSelectHorizontal, ) bf10 = models.IntegerField( choices=[[1, "1"], [2, "2"], [3, "3"], [4, "4"], [5, "5"]], label="... has an active imagination.", widget=widgets.RadioSelectHorizontal, ) feedback = models.LongStringField(label="Please give some feedback on the survey:")