It looks like there are some issues with threading. I put the lines try: model.Session.configure(bind = g.sa_engine) return WSGIController.__call__(self, environ, start_response) finally: assert hasattr(model.Session, 'registry') model.Session.remove()
...long traceback skipped... File '*******/lib/base.py', line 28 in __call__ model.Session.remove() File 'build/bdist.linux-i686/egg/sqlalchemy/orm/scoping.py', line 47 in remove AttributeError: type object 'ScopedSession' has no attribute 'registry' So it had the attribute "registry" right before the "remove()" call, but somewhere deep inside the attribute vanished. And, by the way, the config parameter now is not sqlalchemy.default.uri, but is sqlalchemy.default.url (it's rather SQLAlchemy issue). I mean, L instead of I. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---