Hi everyone:
I do this:
class BaseController(WSGIController):
def __call__(self, environ, start_response):
"""Invoke the Controller"""
# WSGIController.__call__ dispatches to the Controller method
# the request is routed to. This routing information is
# available in environ['pylons.routes_dict']
try:
c.version = "0.1.0"
dispatch=self._dispatch_call()
if not hasattr(dispatch, 'wsgi_response'):
result_length = len(dispatch)
if result_length > 0:
response.headers['Content-Length'] = result_length
return WSGIController.__call__(self, environ, start_response)
finally:
Session.remove()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---