Aaron Held wrote:

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)

Thanks!


I have been thinking about extending the base WebKit for a long time and this is looks like a solution at last.
But, is it possible to call the "parent" or "original" method that 's been substituted?


Quickly inspecting the mixin implementation I would say No but may be I've overlooked something?

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



------------------------------------------------------- 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