[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. Maybe you can tell me what I'm doing
wrong:<br>
<br>
<dtml-call "RESPONSE.setHeader('content-type','multipart/x-mixed-replace;boundary=ThisRandomString')"><br>
<br>
<dtml-call "RESPONSE.write('--ThisRandomString')"><br>
<dtml-call "RESPONSE.setHeader('content-type','text/plain')"><br>
<dtml-call "RESPONSE.write('this is a message')"><br>
<dtml-call "RESPONSE.write('--ThisRandomString')"><br>
<br>
<dtml-call "RESPONSE.setHeader('content-type','text/plain')"><br>
<dtml-call "RESPONSE.write('this is another message')"><br>
<dtml-call "RESPONSE.write('--ThisRandomString--')"><br>
<br>
It returns all the text (including the boundary string) on one page. 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>