in "context"/__init__.py

from MiscUtils.MixIn import MixIn
from WebKit.Session import Session

from MaxUtils import NotifyCode

class SessionMixIn:
def expiring(self):
NotifyCode('Session is ending')


# Now inject the methods from SessionMixIn into Session
MixIn(Session, SessionMixIn)


-Aaron


Max Ischenko wrote:


Hi.



Is it possible to register a callback in WebKit so that my code would be notified when the session ends?


thanks.


------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss



-- -Aaron http://www.MetroNY.com/ "I don't know what's wrong with my television set. I was getting C-Span and the Home Shopping Network on the same station. I actually bought a congressman." - Bruce Baum




------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to