From 29d680b211021fe755522f4453853344233bc78e Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 25 Nov 2008 13:52:40 -0700 Subject: Continued work on xmlrpc.dispatch() unit tests; fixed bug in Command.args_to_kw() --- ipalib/frontend.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ipalib/frontend.py') diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 6dcbea694..e4dd7637a 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -577,12 +577,18 @@ class Command(plugable.Plugin): if len(values) > i: if arg.multivalue: multivalue = True - yield (arg.name, values[i:]) + if len(values) == i + 1 and type(values[i]) in (list, tuple): + yield (arg.name, values[i]) + else: + yield (arg.name, values[i:]) else: yield (arg.name, values[i]) else: break + def args_options_2_params(self, args, options): + pass + def params_2_args_options(self, params): """ Split params into (args, kw). -- cgit