From: Mark Huang Date: Tue, 3 Oct 2006 19:24:31 +0000 (+0000) Subject: - set allow_none to allow XML-RPC marshalling of None values X-Git-Tag: pycurl-7_13_1~676 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=267a3bac20c8c781c49168d835a6b6dbf3f02674;p=plcapi.git - set allow_none to allow XML-RPC marshalling of None values --- diff --git a/PLC/API.py b/PLC/API.py index 80dd8422..de7fb3a2 100644 --- a/PLC/API.py +++ b/PLC/API.py @@ -5,7 +5,7 @@ # Mark Huang # # Copyright (C) 2004-2006 The Trustees of Princeton University -# $Id: API.py,v 1.1 2006/09/06 15:36:06 mlhuang Exp $ +# $Id: API.py,v 1.2 2006/09/08 19:43:31 mlhuang Exp $ # import sys @@ -102,7 +102,7 @@ class PLCAPI: if interface == xmlrpclib: if not isinstance(result, PLCFault): result = (result,) - data = xmlrpclib.dumps(result, methodresponse = True, encoding = self.encoding) + data = xmlrpclib.dumps(result, methodresponse = True, encoding = self.encoding, allow_none = 1) elif interface == SOAPpy: data = buildSOAP(kw = {'%sResponse' % method: {'Result': result}}, encoding = self.encoding)