Michael Engelhart wrote:
Is there a way to handle cleanup of application specific resources when a session is about to expire?We're doing something similar to write log data when a session is over... in the __init__.py of an application, you can do something like this:
__________________________________
from MiscUtils.MixIn import MixIn
from WebKit.Session import Session
class SessionMixIn:
def expiring(self):
'''put stuff you want to happen at session expiration here...'''
pass
# Now inject the methods from SessionMixIn into Session
MixIn(Session, SessionMixIn)
__________________________________
Good luck.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
