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

2006-11-08 Thread Shailesh Kumar
Thank you Phillip,

Just for curiosity, is this zc.async package always going to be a third party or is there any plan of making the
package part of regular zope distribution? 

With regards,
-shailesh
On 11/8/06, Philipp von Weitershausen [EMAIL PROTECTED] wrote:
Shailesh Kumar wrote: In my zope based application, I want to do some periodic actions. I couldn't find out any timer kind of facility in zope.There's a third party package, zc.async, that may solve this problem:
http://svn.zope.org/zc.async/trunk/src/zc/async/--http://worldcookery.com -- Professional Zope documentation and training
___Zope3-users mailing listZope3-users@zope.orghttp://mail.zope.org/mailman/listinfo/zope3-users

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2006-11-08 Thread Philipp von Weitershausen

Shailesh Kumar wrote:

Thank you Phillip,

Just for curiosity, is this zc.async package always going to be a
third party or is there any plan of making the package part of
regular zope distribution?


I don't know of such plans and I would say it's unlikely. It's also 
quite irrelevant for the future because Zope 3 will use eggs for its 
packaging story so installing eggs will likely be necessary either way, 
so installing a few more eggs won't be much of a problem, I'd say.


I don't think the Zope 3 distribution itself will grow much in the 
future, most interesting development will probably happen in third party 
packages... like in the boom years of Zope 2.



--
http://worldcookery.com -- Professional Zope documentation and training

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2006-11-07 Thread Shailesh Kumar
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 [EMAIL PROTECTED] 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





___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users