Skip to content
Browse files

get session_test called at least by commenting out stuff

  • Loading branch information...
1 parent 8efbf58 commit dcce33728b2dae2f7ba6cc4a72e2ea0785389728 @mcdonc committed Jul 10, 2011
Showing with 9 additions and 6 deletions.
  1. +6 −6 pyrapp/app.py
  2. +1 −0 pyrapp/views/index/__init__.py
  3. +1 −0 pyrapp/views/item/__init__.py
  4. +1 −0 pyrapp/views/session_test/__init__.py
View
12 pyrapp/app.py
@@ -38,7 +38,7 @@ def main():
settings['mako.directories'] = os.path.join(here, 'views')
- settings['mongo_connection'] = pymongo.Connection('mongodb://localhost/')
+# settings['mongo_connection'] = pymongo.Connection('mongodb://localhost/')
settings['mongo_db_name'] = 'news33'
settings['session.name'] = 'session'
@@ -51,13 +51,13 @@ def main():
settings['sqlalchemy.url'] = 'postgres://richard:test@localhost/test1'
- db.init(settings)
- session.init(settings)
+# db.init(settings)
+# session.init(settings)
config = Configurator(settings=settings)
- config.add_subscriber('pyrapp.lib.session.on_request', 'pyramid.events.NewRequest')
- config.add_subscriber('pyrapp.lib.session.on_response', 'pyramid.events.NewResponse')
+# config.add_subscriber('pyrapp.lib.session.on_request', 'pyramid.events.NewRequest')
+# config.add_subscriber('pyrapp.lib.session.on_response', 'pyramid.events.NewResponse')
config.include('pyramid_tm')
# configuration setup
@@ -72,7 +72,7 @@ def main():
config.add_static_view('css', os.path.join(here, 'css'))
config.add_static_view('js', os.path.join(here, 'js'))
- config.scan(package='views')
+ config.scan(package='pyrapp.views')
# serve app
app = config.make_wsgi_app()
View
1 pyrapp/views/index/__init__.py
@@ -0,0 +1 @@
+# package
View
1 pyrapp/views/item/__init__.py
@@ -0,0 +1 @@
+# package
View
1 pyrapp/views/session_test/__init__.py
@@ -0,0 +1 @@
+# package

0 comments on commit dcce337

Please sign in to comment.
Something went wrong with that request. Please try again.