Some of you may not like using the filesystem for strong data. In particular that is not a good solution for scalability. Now you can do:
myconf = AppConfig(reload=True)
# always store sessions in cookies
session.connect(request, response, cookie_key=myconf.get('app.cookie_key'))
# store metadata tables in db
db = DAL(myconf.get('db.uri'),
pool_size=myconf.get('db.pool_size'),
migrate_enabled=request.is_local, # trigger a migration when called locally
fake_migrate_all=request.is_local and request.vars._fake, # trigger a fake migration when passing ?_fake=1
adapter_args=dict(migrator=InDBMigrator), # store metadata tables in db itself
check_reserved=['all'])
Notice that if you change your code to do this in an exiting app, you must run a fake migration.