Thanks Matt
Good idea. I hadn't looked into the MixIn class. I'll check that out.

Maybe that's a better solution then mucking around in the Session class

BTW, it appears that expiring() doesn't get called on application shutdown. Any ideas on what the deal is with that?

I saw that storeAllSessions() is called but not expiring()...

Mike
On Thursday, December 5, 2002, at 12:40 PM, Matt Feifarek wrote:

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

Reply via email to