diff options
author | Pavel Zuna <pzuna@redhat.com> | 2009-05-26 17:48:13 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-05-26 13:36:58 -0400 |
commit | a92e4402185e518cf26ba3497b43f09251807a05 (patch) | |
tree | 99414567f8fe89f0568990ca9b2e22dc1f376167 | |
parent | 37a391cd786034333957ac0c0e70b86d1cb93648 (diff) | |
download | freeipa-a92e4402185e518cf26ba3497b43f09251807a05.tar.gz freeipa-a92e4402185e518cf26ba3497b43f09251807a05.tar.xz freeipa-a92e4402185e518cf26ba3497b43f09251807a05.zip |
Clone options of crud.Update and crud.Search with autofill=False.
-rw-r--r-- | ipalib/crud.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py index 990fc39bc..e19382e91 100644 --- a/ipalib/crud.py +++ b/ipalib/crud.py @@ -117,7 +117,7 @@ class Update(PKQuery): for option in super(Update, self).get_options(): yield option for option in self.obj.params_minus_pk(): - yield option.clone(attribute=True, required=False) + yield option.clone(attribute=True, required=False, autofill=False) if not self.extra_options_first: for option in super(Update, self).get_options(): yield option @@ -141,7 +141,9 @@ class Search(frontend.Method): for option in super(Search, self).get_options(): yield option for option in self.obj.params_minus(self.args): - yield option.clone(attribute=True, query=True, required=False) + yield option.clone( + attribute=True, query=True, required=False, autofill=False + ) if not self.extra_options_first: for option in super(Search, self).get_options(): yield option |