def init_db(session): """ Transaction for initializing the application database :param session: An ORM session """ from globaleaks.handlers.admin import tenant tenant.db_create(session, {'mode': 'default', 'label': 'root'}) db_update_defaults(session)
def init_db(session): """ Transaction for initializing the application database :param session: An ORM session """ tenant.db_create(session, { 'mode': 'default', 'name': 'GLOBALEAKS', 'subdomain': '' })
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)
def init_db(session): """ Transaction for initializing the application database :param session: An ORM session """ tenant.db_create(session, {'mode': 'default', 'label': 'root'})
def init_db(session): from globaleaks.handlers.admin import tenant tenant.db_create(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)