[Zope] Help: XMLRPC question

Martijn Pieters mj@zope.com
Tue, 3 Sep 2002 10:52:57 -0400


On Tue, Sep 03, 2002 at 10:43:17AM -0400, Martijn Pieters wrote:
> Ah, 2.5.1 is the last version without marshalling None. Your method most
> likely returns None in the error cases. Try:
> 
>   return [methodcall()] or 0
> 
> and you'll always get 1 or 0.

Uhm, I realized this may be a bit unclear; do not actually use the [] square
brackets! I was trying to say 'insert your method call HERE':

    return *insert your methodcall HERE* or 0

:)

-- 
Martijn Pieters
| Software Engineer  mailto:mj@zope.com
| Zope Corporation   http://www.zope.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------