Thanks! That what I needed.
Christoph Zwerschke wrote:
> Erez Bibi schrieb:
>> I need to call a method on an object I keep in session when the session
>> is closed. I couldn't find any info of how to do it. Is there a
>> call-back function I can register for the session end event?
>> If not I guess I can extend the Session calls and over write the
>> "expiring" method, but then how do I get "Page" to inherit my new
>> session class?
>>
>> Any easy way to do it?
>
> You can use a custom Session class by specifying it in
> Application.config. For instance, if you have a Lib directory inside
> your working directory, then you can set
>
> SessionModule = 'Lib.ExpiringSession'
>
> In Lib/ExpiringSession.py, you must put something like:
>
> from WebKit.Session import Session
>
> class ExpiringSession(Session):
>
> def expiring(self):
> Session.expiring(self)
> ...
>
> See http://www.w4py.org/WebKit/Docs/Configuration.html#application-config
>
> -- Christoph
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss@...
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
>
> ------------------------------------------------------------------------
>
>
> Internal Virus Database is out of date.
> Checked by AVG - http://www.avg.com
> Version: 8.0.176 / Virus Database: 270.10.13/1912 - Release Date: 23/01/2009 18:54
>
|