Commits

Anonymous committed 8ccfcd6

fix simplesite errors

Comments (0)

Files changed (4)

examples/simplesite/db.sqlite

Binary file modified.

examples/simplesite/setup.py

 requires = [
     'pyramid',
     'pyramid_beaker',
+    'pyramid_sqla',
     'pyramid_jinja2',
+    'pyramid_handlers',
+    'pyramid_simpleform',
     'SQLAlchemy',
     'transaction',
     'repoze.tm2',

examples/simplesite/simplesite/__init__.py

     """
     config = Configurator(settings=settings)
 
+    config.include('pyramid_handlers')
+
     # Initialize database
     engine = pyramid_sqla.add_engine(settings, prefix='sqlalchemy.')
     initialize_sql(engine)

examples/simplesite/simplesite/handlers.py

 import logging
 
-from pyramid.view import action
+from pyramid_handlers import action
 from pyramid.url import route_url
 from pyramid.httpexceptions import HTTPFound
 from pyramid_simpleform import Form