[Zope] Asynchronous DTML
Chris McDonough
chrism@zope.com
Sat, 06 Oct 2001 00:49:20 -0400
Weird.
Does Generic User Folder use a SQL database to store user info in your
app? Is it possible that it's only a single-threaded database adapter
in that case?
W. Robert Kellock wrote:
> Hello,
>
> I have now established that Chris is right, there are "no locks... and
> ...what I want is likely available out of the box". The issue of my
> external method importing the sockets library has nothing to do with it.
>
> What is going on is that the external method blocks if it is invoked from a
> sub-folder, but not from my top level folder.
>
> My folder structure is as follows:
>
> Finance - external method doesn't block.
> Finance/Loan - external method blocks (I am using GenericUserFolder here and
> on all sub-folders).
>
> I am now almost certain that the problem is connected with the
> GenericUserFolder product, since the method doesn't block if I try to get
> into another instance of the management interface, but it does block any of
> my users who are logged on via GenericUserFolder.
> ----------------------------------------------------------------------------
> ---------------------------------
> W.Robert Kellock Ph:
> +64 3 326 6115
> Sales Manager Fax:
> +64 3 326 6115
> Credit Systems Control Ltd Web:
> www.creditscore.co.nz
> "making decisions easy"
> ----------------------------------------------------------------------------
> ---------------------------------
>
> ----- Original Message -----
> From: "Chris McDonough" <chrism@digicool.com>
> To: "W. Robert Kellock" <sales@creditscore.co.nz>
> Cc: <zope@zope.org>
> Sent: Friday, 5 October 2001 13:56
> Subject: Re: [Zope] Asynchronous DTML
>
>
>
>>Zope is multithreaded and there are typically no locks on any resources
>>that prevents one thread from operating independently of another, so
>>what you want is likely available out of the box.
>>
>>W. Robert Kellock wrote:
>>
>>>Hello,
>>>
>>>
>>>
>>>Does anyone know how to prevent an external method from blocking?
>>>
>>>
>>>
>>>What I need is an external method that contacts an external server and
>>>returns the result to be displayed in my dtml page. It's quite alright
>>>for the person requesting the page to wait for the response. What I
>>>don't want is for other users to be blocked while the external server
>>>formulates it's response to that user.
>>>
>>>
>>>
>>> From the archives it seems I need to piggyback onto Zopes asyncore /
>>>asynchat to achieve this, but I'm not sure how.
>>>
>>>
>>>
>>>Thanks.
>>>
>>>
>>--------------------------------------------------------------------------
>>
> -----------------------------------
>
>>>W.Robert Kellock
>>>Ph: +64 3 326 6115
>>>Sales Manager
>>>Fax: +64 3 326 6115
>>>Credit Systems Control Ltd Web:
>>>www.creditscore.co.nz <http://www.creditscore.co.nz>
>>> "making decisions easy"
>>>
>>--------------------------------------------------------------------------
>>
> -----------------------------------
>
>>
>>--
>>Chris McDonough Zope Corporation
>>http://www.zope.org http://www.zope.com
>>"Killing hundreds of birds with thousands of stones"
>>
>>
>
>
> _______________________________________________
> 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 )
>
--
Chris McDonough Zope Corporation
http://www.zope.org http://www.zope.com
"Killing hundreds of birds with thousands of stones"