[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - xmlrpc.py:1.11
Toby Dickenson
tdickenson@geminidataloggers.com
Fri, 31 May 2002 08:31:08 -0400
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv29326/ZPublisher
Modified Files:
xmlrpc.py
Log Message:
merged toby-xmlrpclib099-branch. Changed ZPublisher xmlrpc support to allow published methods to return None nested inside a data structure
=== Zope/lib/python/ZPublisher/xmlrpc.py 1.10 => 1.11 ===
# strings, integers as integers, etc. We do *not* convert
# everything to a string first.
- if body is None:
- body=xmlrpclib.False # Argh, XML-RPC doesn't handle null
+ # Previously this had special handling if the response
+ # was a Python None. This is now patched in xmlrpclib to
+ # allow Nones nested inside data structures too.
try:
body = xmlrpclib.dumps((body,), methodresponse=1)
except: