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()...
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...'''
> # Now inject the methods from SessionMixIn into Session
> MixIn(Session, SessionMixIn)
> Good luck.