[Seaside] how to determine server is inactive

Philippe Marschall philippe.marschall at gmail.com
Thu Oct 28 14:15:42 UTC 2010


2010/10/28 Randal L. Schwartz <merlyn at stonehenge.com>:
>>>>>> "Yanni" == Yanni Chiu <yanni at rogers.com> writes:
>
> Yanni> I would like to have a Seaside image automatically save&quit, if it is
> Yanni> inactive. Now, how should the inactive state be determined?
>
> I'd set a timer to trigger the save and quit, and on every request,
> reset the timer to its full time again.  Not sure where to hook it in
> for each request, but maybe with a bit of poking, you can find it.

Wrapping a request filter around the default dispatcher should do the trick.

Cheers
Philippe


More information about the seaside mailing list