Christian Steinhauer wrote:

What a nice tool. Now more debugging with some interesting results.
for i in range(2):
  context.MailHost.send('bodytext', "[EMAIL PROTECTED]", "[EMAIL PROTECTED]",
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 ;-)



Simplistix - Content Management, Zope & Python Consulting
Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to