From 267a3bac20c8c781c49168d835a6b6dbf3f02674 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Tue, 3 Oct 2006 19:24:31 +0000 Subject: [PATCH] - set allow_none to allow XML-RPC marshalling of None values --- PLC/API.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.0