from os import environ ROOMS = [ dict( name='concil2P', display_name='concil2P' ), dict( name='concil3P', display_name='concil3P' ), dict( name='evas_1', display_name='evas_1' ), dict( name='evas_2', display_name='evas_2' ), dict( name='test', display_name='test', ), dict( name='test_label', display_name='test_label', participant_label_file='_rooms/test.txt', use_secure_urls=False ), dict( name='FL01_prod', display_name='FL01_prod', participant_label_file='_rooms/FL01_prod.txt', use_secure_urls=False ), dict( name='behealth_1v', display_name='behealth_1v', participant_label_file='_rooms/behealth_1v.txt', use_secure_urls=True ), dict( name='behealth_2v', display_name='behealth_2v', participant_label_file='_rooms/behealth_2v.txt', use_secure_urls=True ), dict( name='behealth_3v', display_name='behealth_3v', participant_label_file='_rooms/behealth_3v.txt', use_secure_urls=True ), dict( name='behealth_4v', display_name='behealth_4v', participant_label_file='_rooms/behealth_4v.txt', use_secure_urls=True ), dict( name='behealth_5v', display_name='behealth_5v', participant_label_file='_rooms/behealth_5v.txt', use_secure_urls=True ), dict( name='behealth_6v', display_name='behealth_6v', participant_label_file='_rooms/behealth_6v.txt', use_secure_urls=True ), ] SESSION_CONFIGS = [ dict( name='EXLEY_DEMOG', display_name="EXLEY_DEMOG", num_demo_participants=1, app_sequence=['EXLEY_DEMOG'] ), dict( name='dana', display_name="dana", num_demo_participants=1, app_sequence=['EXLEY_DANA'] ), dict( name='TEST_paiement', display_name="TEST_paiement", num_demo_participants=1, app_sequence=['EXLEY_CONSIGNE', 'EXLEY_ASSO', 'EXLEY_ASPS', 'EXLEY_ACPC', 'EXLEY_ACPS', 'EXLEY_ASPC', 'EXLEY_DANA', 'EXLEY_RESULTAT'] ), dict( name='TEST', display_name="TEST", num_demo_participants=1, app_sequence=[ 'EXLEY_CONSIGNE', 'EXLEY_ASSO', 'EXLEY_ASPS_TRAINING', 'EXLEY_ACPC_TRAINING', 'EXLEY_ACPS_TRAINING', 'EXLEY_ASPC_TRAINING', 'StartApp', 'EXLEY_ASPS', 'EXLEY_ACPC', 'EXLEY_ACPS', 'EXLEY_ASPC', 'EXLEY_DANA', 'EXLEY_DEMOG', 'EXLEY_RESULTAT'] ), dict( name='attention_boule_task', display_name="attention_boule_task", num_demo_participants=1, app_sequence=['attention_boule_task'] ), dict( name='EXP_VL_FINAL', display_name="EXP_VL_FINAL", num_demo_participants=1, app_sequence=['MAIF_CONSIGNE', 'MAIF_ASSO', 'StartApp', 'MAIF_PREV_YCPC', 'MAIF_PREV_YSPS', 'MAIF_PREV_YSPC', 'MAIF_PREV_YCPS', 'MAIF_DEMOG', 'MAIF_RESULTAT'] ), dict( name='MAIF_PREV', display_name="EXPE_TEST", num_demo_participants=3, app_sequence=['StartApp','MAIF_CONSIGNE', 'MAIF_ASSO', 'MAIF_PREV_YCPC', 'MAIF_PREV_YSPS', 'MAIF_PREV_YCPS', 'MAIF_PREV_YSPC', 'MAIF_DEMOG', 'MAIF_RESULTAT'] ), dict( name='prev2', display_name="prev2", num_demo_participants=1, app_sequence=['prev2'] ), ] #def creating_session(subsession): # if subsession.round_number == 1: # for player in subsession.get_players(): # randomized_apps = ['APP1', 'APP2', 'APP3'] # random.shuffle(randomized_apps) # player.participant.vars['app_sequence'] = ['APP_begin'] + randomized_apps # if you set a property in SESSION_CONFIG_DEFAULTS, it will be inherited by all configs # in SESSION_CONFIGS, except those that explicitly override it. # the session config can be accessed from methods in your apps as self.session.config, # e.g. self.session.config['participation_fee'] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1.00, participation_fee=0.00, doc="" ) # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'fr' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'EUR' USE_POINTS = False ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = '4jq9&agz$^@p35x2smzzai((g7aa!p!otch**h6e3%e$&0=aca' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']