[Web-SIG] and now for something completely different!
ianb at colorstudy.com
Tue Aug 16 19:05:06 CEST 2005
Ian Bicking wrote:
> Though there's a couple issues. The sessino store should be passed
> along with the session ID. It should be specified that loading a
> session from this callback will not cancel its expiration. Maybe
> per-session callbacks should be allowed; in which case the callbacks
> would have to be identifiable by a string or some pickleable value,
> since you can't pickle the functions themselves. I suppose you could
> implement the callback as an instance with a __call__ method, which
> pickle turns into a class name plus __dict__ values. I hate overusing
> __call__; if it has to be an instance (to be pickleable), then might as
> well give it a method name, and maybe call other methods as well. Then
> it essentially becomes an ad hoc event system.
A more complete event system would also let people like Phillip who
don't want to use ad hoc storage to simply ignore that part, and use the
session ID and events to manage data in their application storage.
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the Web-SIG