From 09161e399a61e2a548e9efb3c3abb2c7b47d5520 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 12 Nov 2008 01:47:37 -0700 Subject: Command.get_default() will now fill-in None for all missing non-required params --- ipalib/util.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ipalib/util.py') diff --git a/ipalib/util.py b/ipalib/util.py index 12f9c781..9bc43254 100644 --- a/ipalib/util.py +++ b/ipalib/util.py @@ -34,6 +34,12 @@ def xmlrpc_marshal(*args, **kw): """ Marshal (args, kw) into ((kw,) + args). """ + kw = dict( + filter(lambda item: item[1] is not None, kw.iteritems()) + ) + args = tuple( + filter(lambda value: value is not None, args) + ) return ((kw,) + args) -- cgit