Skip to content

Commit

Permalink
fix wsgi app entry
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Dec 12, 2011
1 parent ca3daee commit 34e848f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ptah/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,12 @@ def make_wsgi_app(global_settings, **settings):
"""
import sys
import sqlahelper
import transaction
from pyramid.config import Configurator

# configuration
cfg = Configurator(settings=settings)
cfg.include('ptah')
cfg.commit()

# initialization
try:
Expand All @@ -233,6 +234,7 @@ def make_wsgi_app(global_settings, **settings):
# create sql tables
Base = sqlahelper.get_base()
Base.metadata.create_all()
transaction.commit()

# create wsgi app
return cfg.make_wsgi_app()
Expand Down

0 comments on commit 34e848f

Please sign in to comment.