diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-14 05:46:20 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-14 05:46:20 +0000 |
commit | ba8d32a110f3dc96b091df9a2520f60c99ac26ba (patch) | |
tree | b6161b299992f0b15b572430bdf210a67c10c527 /ipalib/public.py | |
parent | d95133b66f64a2e4f1c8aafa5ff9183c6acfe9a7 (diff) | |
download | freeipa.git-ba8d32a110f3dc96b091df9a2520f60c99ac26ba.tar.gz freeipa.git-ba8d32a110f3dc96b091df9a2520f60c99ac26ba.tar.xz freeipa.git-ba8d32a110f3dc96b091df9a2520f60c99ac26ba.zip |
150: NameSpace.__iter__() now iterates through the names, not the members; added NameSpace.__call__() method which iterates through the members; NameSpace no longer requires members to be Proxy instances; updated unit tests and affected code; cleaned up NameSpace docstrings and switch to epydoc param docstrings
Diffstat (limited to 'ipalib/public.py')
-rw-r--r-- | ipalib/public.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/public.py b/ipalib/public.py index 15f08b5b..d23aa7ac 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -187,7 +187,7 @@ class cmd(plugable.Plugin): return dict(self.normalize_iter(kw)) def default_iter(self, kw): - for option in self.options: + for option in self.options(): if option.name not in kw: value = option.default(**kw) if value is not None: @@ -199,7 +199,7 @@ class cmd(plugable.Plugin): def validate(self, **kw): self.print_call('validate', kw, 1) - for opt in self.options: + for opt in self.options(): value = kw.get(opt.name, None) if value is None: if opt.required: |