[Zope] Time-consuming External method blocks Zope execution

shawn grant shawn@dolphinsearch.com
Fri, 15 Jun 2001 16:05:54 -0700


<html>
<head>
</head>
<body>
Here's an example of my test method. &nbsp;Maybe you can tell me what I'm doing
wrong:<br>
<br>
&lt;dtml-call "RESPONSE.setHeader('content-type','multipart/x-mixed-replace;boundary=ThisRandomString')"&gt;<br>
<br>
&lt;dtml-call "RESPONSE.write('--ThisRandomString')"&gt;<br>
&lt;dtml-call "RESPONSE.setHeader('content-type','text/plain')"&gt;<br>
&lt;dtml-call "RESPONSE.write('this is a message')"&gt;<br>
&lt;dtml-call "RESPONSE.write('--ThisRandomString')"&gt;<br>
<br>
&lt;dtml-call "RESPONSE.setHeader('content-type','text/plain')"&gt;<br>
&lt;dtml-call "RESPONSE.write('this is another message')"&gt;<br>
&lt;dtml-call "RESPONSE.write('--ThisRandomString--')"&gt;<br>
<br>
It returns all the text (including the boundary string) on one page. &nbsp;I also
tried using RESPONSE.appendHeader for the message portions but that didn't
work either.<br>
<br>
thanks for your help,<br>
Shawn<br>
<br>
<br>
Jerome Alet wrote:<br>
<blockquote type="cite" cite="mid:20010615235508.A825@nordine.ateur"><pre wrap="">On Fri, Jun 15, 2001 at 01:17:32PM -0700, shawn grant wrote:<br></pre>
  <blockquote type="cite"><pre wrap="">I have been unable to get this method to work.  I went to the Netscape page and tried their example.  It didn't work with Netscape 4.75 on windows or linux (as well as IE and mozilla).  Is this still a supported mimetype?  Has anyone gotten this to work in or outside of zope?<br></pre>
    </blockquote>
    <pre wrap=""><!----><br>Works fine here on my Debian potato with Netscape 4.75.<br><br>I can send you a very long python CGI script if you want to see the<br>code, but it's not easily readable because it's an SQL CGI frontend to<br>PostgreSQL, slightly specialised for a particular application.<br><br>bye,<br><br>Jerome Alet<br><br></pre>
    </blockquote>
    <br>
    <br>
    </body>
    </html>