fix edbob.init() call in pyramid app

This commit is contained in:
Lance Edgar 2012-07-25 15:20:34 -07:00
parent 7a4fb727c9
commit fb3c5c5ade

View file

@ -34,6 +34,9 @@ def main(global_config, **settings):
config = Configurator(settings=settings)
# Configure edbob
edbob.init('{{package}}', os.path.abspath(settings['edbob.config']))
# Configure session
config.include('pyramid_beaker')
@ -50,8 +53,4 @@ def main(global_config, **settings):
config.include('{{package}}.pyramid.subscribers')
config.include('{{package}}.pyramid.views')
# Configure edbob. Note that this is done last, primarily to allow logging
# to leverage edbob's config inheritance.
edbob.init('{{package}}', os.path.abspath(settings['edbob.config']))
return config.make_wsgi_app()