script returns nothing when value is false

Andreas Jung lists at
Tue Aug 28 13:56:59 UTC 2007

--On 28. August 2007 06:49:57 -0700 patrimith <paddysmith at> wrote:
> When accessed via XMLRPC, a return value of True is received as True, but
> a return value of False results in a blank (i.e. no response).
> Any ideas why when a Script (Python) returns a value of False no response
> is sent?

Likely because the ZPublisher checks the response in a way like:

if result:

And non-string content is converted using str() (I believe) before sending 
it back to the browser. This explains by True is returned as 'True'.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <>

More information about the Product-Developers mailing list