7667a7b9af
Fixes existing pep8 errors and reenables the corresponding tox rules Change-Id: I4168a90c40173e4c35c9d75030cd592ace657508
15 lines
255 B
Python
15 lines
255 B
Python
from orm import model
|
|
from pecan import make_app
|
|
|
|
|
|
def setup_app(config):
|
|
|
|
model.init_model()
|
|
app_conf = dict(config.app)
|
|
|
|
return make_app(
|
|
app_conf.pop('root'),
|
|
logging=getattr(config, 'logging', {}),
|
|
**app_conf
|
|
)
|