from otree.api import * doc = """ Debrief app """ class C(BaseConstants): NAME_IN_URL = 'debrief' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): # STAI trait anxiety stai_calm = models.IntegerField(choices=[(1,'Not at all'),(2,'Somewhat'),(3,'Moderately so'),(4,'Very much so')], widget=widgets.RadioSelectHorizontal) stai_tense = models.IntegerField(choices=[(1,'Not at all'),(2,'Somewhat'),(3,'Moderately so'),(4,'Very much so')], widget=widgets.RadioSelectHorizontal) stai_upset = models.IntegerField(choices=[(1,'Not at all'),(2,'Somewhat'),(3,'Moderately so'),(4,'Very much so')], widget=widgets.RadioSelectHorizontal) stai_relaxed = models.IntegerField(choices=[(1,'Not at all'),(2,'Somewhat'),(3,'Moderately so'),(4,'Very much so')], widget=widgets.RadioSelectHorizontal) stai_content = models.IntegerField(choices=[(1,'Not at all'),(2,'Somewhat'),(3,'Moderately so'),(4,'Very much so')], widget=widgets.RadioSelectHorizontal) stai_worried = models.IntegerField(choices=[(1,'Not at all'),(2,'Somewhat'),(3,'Moderately so'),(4,'Very much so')], widget=widgets.RadioSelectHorizontal) # Perceived Stress Scale pss1 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) pss2 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) pss3 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) pss4 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) pss5 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) pss6 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) pss7 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) pss8 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) pss9 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) pss10 = models.IntegerField(choices=[(0,'Never'),(1,'Almost never'),(2,'Sometimes'),(3,'Fairly often'),(4,'Very often')], widget=widgets.RadioSelectHorizontal) # General math_skills = models.IntegerField(choices=[(1,'1'),(2,'2'),(3,'3'),(4,'4'),(5,'5')], widget=widgets.RadioSelectHorizontal) cold_comfort = models.IntegerField(choices=[(1,'1'),(2,'2'),(3,'3'),(4,'4'),(5,'5')], widget=widgets.RadioSelectHorizontal) # PAGES class FinalQuestionnaire(Page): form_model = 'player' form_fields = [ 'stai_calm', 'stai_tense', 'stai_upset', 'stai_relaxed', 'stai_content', 'stai_worried', 'pss1', 'pss2', 'pss3', 'pss4', 'pss5', 'pss6', 'pss7', 'pss8', 'pss9', 'pss10', 'math_skills', 'cold_comfort', ] class Debrief(Page): pass class ORSEE(WaitPage): pass page_sequence = [FinalQuestionnaire, Debrief, ORSEE]