[Zope] Asynchronous DTML

W. Robert Kellock sales@creditscore.co.nz
Fri, 5 Oct 2001 12:40:29 +1200


This is a multi-part message in MIME format.

------=_NextPart_000_0025_01C14D9A.EA83E7E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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
                                              "making decisions easy"
-------------------------------------------------------------------------=
------------------------------------


------=_NextPart_000_0025_01C14D9A.EA83E7E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hello,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2>Does anyone know how to prevent an external method =
from=20
blocking?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>What I need is&nbsp;an external method that contacts =
an=20
external server and returns the result to be displayed in my dtml =
page.&nbsp;=20
It's quite alright for the person requesting the page to wait for the =
response.=20
What I don't want is for other users to be blocked while the external =
server=20
formulates it's response to that user.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>From the archives it seems&nbsp;I need to piggyback =
onto Zopes=20
asyncore / asynchat to achieve this, but I'm not sure how.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks.</FONT></DIV></FONT></DIV>
<DIV><FONT=20
size=3D2>----------------------------------------------------------------=
---------------------------------------------<BR>W.Robert=20
Kellock&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Ph:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
+64 3 326 6115<BR>Sales=20
Manager&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
+64 3 326 6115<BR>Credit Systems Control=20
Ltd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Web:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A=20
href=3D"http://www.creditscore.co.nz">www.creditscore.co.nz</A><BR>&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"making decisions=20
easy"<BR>----------------------------------------------------------------=
---------------------------------------------<BR></FONT></DIV></BODY></HT=
ML>

------=_NextPart_000_0025_01C14D9A.EA83E7E0--