def application(config):
    db = database.DB(config)
    processing.configure(db, config)
    return SessionMiddleware(bottle.default_app(), {'session.type': 'memory', 'session.key': 's_id', 'session.secret': config['sessions']['secret'], 'session.timeout': (60 * 30), 'session.auto': True})
def application(config):
    db = database.DB(config)
    processing.configure(db, config)
    return SessionMiddleware(bottle.default_app(), {'session.type': 'memory', 'session.key': 's_id', 'session.secret': config['sessions']['secret'], 'session.timeout': (60 * 30), 'session.auto': True})