diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-24 23:29:15 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-24 23:29:15 +0000 |
commit | be2e323bbf3f036777acd6e5e16e03f9e66b2ee8 (patch) | |
tree | 062cce34ef29b0fad96896a2afb39a4ae0b87193 /ipalib/frontend.py | |
parent | c3b09b2116dcbab36098f11c6b3684a6d0e47c08 (diff) | |
download | freeipa-be2e323bbf3f036777acd6e5e16e03f9e66b2ee8.tar.gz freeipa-be2e323bbf3f036777acd6e5e16e03f9e66b2ee8.tar.xz freeipa-be2e323bbf3f036777acd6e5e16e03f9e66b2ee8.zip |
353: The Object.parms instance attribute is now created in Object.set_api() instead of in Object.__init__()
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 132e30392..bcd610a53 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -517,13 +517,9 @@ class Object(plugable.Plugin): )) methods = None properties = None + params = None takes_params = tuple() - def __init__(self): - self.params = plugable.NameSpace( - (create_param(p) for p in self.takes_params), sort=False - ) - def __create_params(self): for param in self.takes_params: yield create_param(param) @@ -532,6 +528,9 @@ class Object(plugable.Plugin): super(Object, self).set_api(api) self.methods = self.__create_namespace('Method') self.properties = self.__create_namespace('Property') + self.params = plugable.NameSpace( + (create_param(p) for p in self.takes_params), sort=False + ) def __create_namespace(self, name): return plugable.NameSpace(self.__filter_members(name)) |