from otree.api import * doc = """ Consent and privacy notice for the shipping click-through pretest. Trimmed from studies/23-shipping/software/onboarding: no microphone permission, no baseline recording, no S3 upload — just device metadata and consent. """ class C(BaseConstants): NAME_IN_URL = 'onboarding' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 PRIVACY_TEMPLATE = "onboarding/Privacy.html" class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): # Device metadata, captured on the Consent page. screen_width = models.IntegerField(blank=True) screen_height = models.IntegerField(blank=True) touch_capable = models.IntegerField(blank=True) # 0 / 1 class Consent(Page): form_model = 'player' form_fields = ['screen_width', 'screen_height', 'touch_capable'] page_sequence = [ Consent, ]