Solved! There is a
*request.add_finished_callback*
property of the request object, so I extended the DAL object:
class Root(DAL):
def __init__(self, request, uri):
DAL.__init__(self, uri, pool_size=0)
request.add_finished_callback(self._close)
def _close(self, request):
self._adapter.close()
--
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.