27 Nov
2006
27 Nov
'06
4:16 p.m.
Christian Steinhauer wrote:
What a nice tool. Now more debugging with some interesting results.
### for i in range(2): context.MailHost.send('bodytext', "rec@mail.com", "sender@mail.com", '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