From a92e4402185e518cf26ba3497b43f09251807a05 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Tue, 26 May 2009 17:48:13 +0200 Subject: Clone options of crud.Update and crud.Search with autofill=False. --- ipalib/crud.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ipalib/crud.py') diff --git a/ipalib/crud.py b/ipalib/crud.py index 990fc39b..e19382e9 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 -- cgit