Hello,
I have implemented custom middleware that do session commit and delete
session.
class SessionCommitMiddleware(object):
def __init__(self, app):
self.app = app
def __call__(self, environ, start_response):
result = self.app(environ, start_response)
try:
model.Session.commit()
return result
finally:
model.Session.remove()
It works fine, the only problem:
Exception raised, during session commit, does not shown in browser if
controller returns redirect to other controller/action.
How fix this?
Taras.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---