Re: [Zope] Help: XMLRPC question
On Tue, Sep 03, 2002 at 05:18:14PM +0300, Ruslan Spivak wrote:
MP> Recent version of Zope marshall None as boolean false. What version of MP> Zope is the XML-RPC server using?
RH7.2 + Zope2.5.1
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. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
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/ ---------------------------------------------
participants (1)
-
Martijn Pieters