Beispiel #1
0
def end_of_request(exception): # pylint: disable=unused-argument
    ''' close the database '''
    DB.close()
Beispiel #2
0
def end_of_request(exception):  # pylint: disable=unused-argument
    ''' close the database '''
    DB.close()
Beispiel #3
0
def before_the_action():
    ''' load some variables in for template etc to use, and connect the DB '''

    g.site_vars = app.config.get('SITE_VARS')
    DB.init(app.config.get('DATABASE_FILE'))
    DB.connect()
Beispiel #4
0
def before_the_action():
    ''' load some variables in for template etc to use, and connect the DB '''

    g.site_vars = app.config.get('SITE_VARS')
    DB.init(app.config.get('DATABASE_FILE'))
    DB.connect()