Exemplo n.º 1
0
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)
Exemplo n.º 2
0
def init_db(session):
    """
    Transaction for initializing the application database
    :param session: An ORM session
    """
    tenant.db_create(session, {
        'mode': 'default',
        'name': 'GLOBALEAKS',
        'subdomain': ''
    })
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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)
Exemplo n.º 5
0
def init_db(session):
    """
    Transaction for initializing the application database
    :param session: An ORM session
    """
    tenant.db_create(session, {'mode': 'default', 'label': 'root'})
Exemplo n.º 6
0
def init_db(session):
    from globaleaks.handlers.admin import tenant
    tenant.db_create(session, {})
Exemplo n.º 7
0
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)