From 18cecdc515f04853a316fa74b1247878ae77ba15 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Fri, 6 Feb 2009 10:09:30 -0700 Subject: Removed depreciated xmlrpc_marshal() and xmlrpc_unmarshal() functions --- ipalib/util.py | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'ipalib/util.py') diff --git a/ipalib/util.py b/ipalib/util.py index 9c995825e..13f75082e 100644 --- a/ipalib/util.py +++ b/ipalib/util.py @@ -32,33 +32,6 @@ from xmlrpclib import Binary import krbV - -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) - - -def xmlrpc_unmarshal(*params): - """ - Unmarshal (params) into (args, kw). - """ - if len(params) > 0: - kw = params[0] - if type(kw) is not dict: - raise TypeError('first xmlrpc argument must be dict') - else: - kw = {} - return (params[1:], kw) - - def get_current_principal(): try: return krbV.default_context().default_ccache().principal().name -- cgit