from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class ProlificID(Page): form_model = 'player' form_fields = ['Prolific_ID'] class SessionFull(WaitPage): wait_for_all_groups = True body_text = 'We are still waiting for the other participants to join the session. We appreciate your patience.' class Introduction(Page): form_model = 'player' timeout_seconds = 180 def before_next_page(self): if self.timeout_happened: self.participant.vars['is_dropout'] = True page_sequence = [ProlificID, SessionFull, Introduction]