[Seaside] Re: how to determine server is inactive

Yanni Chiu yanni at rogers.com
Sat Oct 30 21:39:10 UTC 2010


On 28/10/10 10:15 AM, Philippe Marschall wrote:
> 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.

Thank you both, for the two parts of the solution. The code is attached, 
released under MIT license. Please add to Seaside 3.0 Addons, if it's 
generally useful.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Seaside-InactiveServerDetector-YanniChiu.2.mcz
Type: application/octet-stream
Size: 4492 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101030/1be7c0ff/Seaside-InactiveServerDetector-YanniChiu.2.obj


More information about the seaside mailing list