www-...@beachhead  committed 094e3cd

getting better - we still go into a loop on initial validation

  • Participants
  • Parent commits bc57a0b
  • Branches default

Comments (0)

Files changed (7)


File wsgicas.wsgi

+import os, site, sys
+os.environ['PYTHON_EGG_CACHE'] = '/var/wsgi/wsgicas/python-eggs'
+from paste.deploy import loadapp
+application = loadapp('config:/var/wsgi/wsgicas/wsgicas/development.ini')

File wsgicas/development.ini

 # The %(here)s variable will be replaced with the parent directory of this file
-debug = true
+debug = false
 # Uncomment and replace with the address which should receive any error reports
 #email_to =
 smtp_server = localhost

File wsgicas/wsgicas/config/

 import wsgicas.lib.app_globals as app_globals
 import wsgicas.lib.helpers
-import wsgicas.lib.authenticators as authenticators
 from wsgicas.config.routing import make_map
 from wsgicas.model import init_model
     # CONFIGURATION OPTIONS HERE (note: all config options will override
     # any Pylons config options)
     config['authenticator'] = \
-        make_plugin('.htpasswd',
+        make_plugin('/var/wsgi/wsgicas/wsgicas/.htpasswd',

File wsgicas/wsgicas/controllers/

             response.status = 401
             message = \
-                'There was an error validating your request. Please try again'
+                'There was an error validating your request. Please try again.'
             return self._render_login_form(action=url_for(),
                                            message=message, service=service)

File wsgicas/wsgicas/lib/

             # FIXME: I feel dirty.
             environ['repoze.who.logger'] = \
-                logging.getLogger('repoze.who.plugins.htpasswd')
+                logging.getLogger('wsgicas.controllers.cas')
             return WSGIController.__call__(self, environ, start_response)

File wsgicas/wsgicas/model/

 def init_model(engine):
     """Call me before using any of the tables or classes in the model"""
-    sm = orm.sessionmaker(autoflush=True, transactional=True, bind=engine)
+    sm = orm.sessionmaker(autoflush=True, autocommit=False, bind=engine)
     meta.engine = engine
     meta.Session = orm.scoped_session(sm)