Christian Steinhauer wrote:
http://www.blunck.se/iehttpheaders/iehttpheaders.html


What a nice tool. Now more debugging with some interesting results.
###
for i in range(2):
  context.MailHost.send('bodytext', "[EMAIL PROTECTED]", "[EMAIL PROTECTED]",
'subj'+str(i))
###
This script produces: HTTP/1.1 204 No Content

Moral of the story: if you want sane things to happen, make sure your script returns a string output.

Otherwise you risk tickling some of the more arcane "features" of Zope 2's publisher. They include "no content" responses if you return None and even weirder things if you return a two-element tuple.

This isn't a bug, you're doing something silly, stop doing it ;-)

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to