diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-21 18:50:00 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-21 18:50:00 +0000 |
commit | 4a96ec2dc7975e5c6f76e87be0c62a51d262de32 (patch) | |
tree | 9bda9c6a1002cd4f37790ef9a909f93705a0c2c5 /ipalib/public.py | |
parent | f8953720c4438c34f5e42ca3949e8078ca777fe4 (diff) | |
download | freeipa.git-4a96ec2dc7975e5c6f76e87be0c62a51d262de32.tar.gz freeipa.git-4a96ec2dc7975e5c6f76e87be0c62a51d262de32.tar.xz freeipa.git-4a96ec2dc7975e5c6f76e87be0c62a51d262de32.zip |
304: args, options, & params namespaces are now created in Command.finalize() instead of Command.__init__(); updated corresponding unit tests
Diffstat (limited to 'ipalib/public.py')
-rw-r--r-- | ipalib/public.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ipalib/public.py b/ipalib/public.py index 40b13229..78fa0983 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -233,8 +233,12 @@ class Command(plugable.Plugin): )) takes_options = tuple() takes_args = tuple() + args = None + options = None + params = None - def __init__(self): + def finalize(self, api): + super(Command, self).finalize(api) self.args = plugable.NameSpace(self.__check_args(), sort=False) if len(self.args) == 0 or not self.args[-1].multivalue: self.max_args = len(self.args) |