def init_db(session): from globaleaks.handlers.admin import tenant tenant.db_create(session, {'mode': 'default', 'label': 'root'}) memlimit, opslimit = GCE.auto_tune() db_set_config_variable(session, 1, 'encryption_memlimit', memlimit) db_set_config_variable(session, 1, 'encryption_opslimit', opslimit) db_load_default_questionnaires(session) db_load_default_fields(session)
def init_db(session): from globaleaks.handlers.admin import tenant tenant.db_create(session, {'mode': 'default', 'label': 'root'}) db_load_default_questionnaires(session) db_load_default_fields(session)