diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-24 23:19:34 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-24 23:19:34 +0000 |
commit | c3b09b2116dcbab36098f11c6b3684a6d0e47c08 (patch) | |
tree | 8180aecb42f10ec22d65b658f3741f3500d96dd7 /ipalib/frontend.py | |
parent | 3d6ab69b46e5be32af94ecdfb5a696973eeaf7c4 (diff) | |
download | freeipa-c3b09b2116dcbab36098f11c6b3684a6d0e47c08.tar.gz freeipa-c3b09b2116dcbab36098f11c6b3684a6d0e47c08.tar.xz freeipa-c3b09b2116dcbab36098f11c6b3684a6d0e47c08.zip |
352: Now removed Object.Property property and added in its place Object.properties instance attribute
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index c3b1707b..132e3039 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -512,11 +512,11 @@ class Command(plugable.Plugin): class Object(plugable.Plugin): __public__ = frozenset(( 'methods', - 'Property', + 'properties', 'params' )) methods = None - __Property = None + properties = None takes_params = tuple() def __init__(self): @@ -528,15 +528,10 @@ class Object(plugable.Plugin): for param in self.takes_params: yield create_param(param) - - def __get_Property(self): - return self.__Property - Property = property(__get_Property) - def set_api(self, api): super(Object, self).set_api(api) self.methods = self.__create_namespace('Method') - self.__Property = self.__create_namespace('Property') + self.properties = self.__create_namespace('Property') def __create_namespace(self, name): return plugable.NameSpace(self.__filter_members(name)) @@ -596,14 +591,14 @@ class Method(Attribute, Command): def get_options(self): for option in self.takes_options: yield option - if self.obj is not None and self.obj.Property is not None: + if self.obj is not None and self.obj.properties is not None: def get_key(p): if p.param.required: if p.param.default_from is None: return 0 return 1 return 2 - for prop in sorted(self.obj.Property(), key=get_key): + for prop in sorted(self.obj.properties(), key=get_key): yield prop.param |