[Zope] Threads in ExternalMethods

Loren Stafford lstafford@morphics.com
Fri, 11 May 2001 11:23:46 -0700


You might consider using Xron to schedule the async process for "now"
(_.DateTime()). I won't claim this is the best solution for your app, but at
least all the threading is already done for you and the scheduled method is
"all Zope".

-- Loren

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Juan
> Carlos Coruņa
> Sent: Friday, May 11, 2001 07:40
> To: zope@zope.org
> Subject: [Zope] Threads in ExternalMethods
>
>
> Hi all,
>
> I am now trying to create an ExternalMethod that executes a long process
> (about 30 seconds) in a new thread and then this thread sends the
> result per
> e-mail. The ExternalMethod must return inmediatly. I need this behavior in
> order to not block the user while browsing.
>
> Are there anybody that can help me?
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>