[Zope3-Users] Re: how to get zope shutdown event and do some actions at that time?

Shailesh Kumar shaileshk at gmail.com
Wed Nov 8 01:32:24 EST 2006


One way I can do it is by registering a utility whose
   *__del__*( self) method is overridden.

Is it a recommended method?

With regards,
-shailesh

On 11/8/06, Shailesh Kumar <shaileshk at gmail.com> wrote:
>
> Dear zope experts,
>
> In my zope based application, I want to do some periodic actions. I
> couldn't find out any timer kind of facility in zope. I was thinking that I
> could start a thread in the beginning which would work as a timer and create
> an event on periodic basis. Different subscribers to the event would then be
> activated which would carry out their piece of work.
> I would like to have a clean close up of this thread when zope shuts down.
> But I couldn't find out how to do that.
> Is there some way to setup some tear down cleanup operations in my
> application?
>
> Thanks for your help.
>
> With regards,
> -shailesh
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20061108/60afc16c/attachment.htm


More information about the Zope3-users mailing list