[Zope] how to programmatically control zope?

David Pratt fairwinds at eastlink.ca
Wed Sep 21 13:59:51 EDT 2005


Hi Bruno.  Many thanks you for your reply.  Yes, I have been looking at 
this more.  With the help of Ron a few days back I am going to try a 
signaling process working with a daemon that uses a queue. So I am 
hoping for user to get response so zope thread is freed up, an 
asynchronous python method / daemon gets signal to run if not already 
running,  job gets added to queue and jobs run queue is empty (then 
daemon goes to sleep).

Regards,
David

On Wednesday, September 21, 2005, at 10:13 AM, bruno modulix wrote:

> David Pratt wrote:
>> Hi. This discussion has really helped me with my question about 
>> running
>> asynchronous methods also since these kinds of requests could be 
>> cronned
>> at the very least.  But what about triggering this kind of script from
>> the running zope instance.  Is this possible?
>>
>
> Two solutions a priori:
> - call an external method that launch a thread that do the job
> - fork and launch the script as a new process with os.execXXX
>
> You'll find documentations about threads and os.execXX in the Python's
> manual. Now there can be Zope-specific gotchas, but there I can't help 
> you.
>
>
>
> -- 
> Bruno Desthuilliers
> Développeur
> bruno at modulix.org
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>


More information about the Zope mailing list