diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-22 20:32:23 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-22 20:32:23 +0000 |
commit | 5bf6a9eb097fbaf1c048a4487e6ca6b9605b9f05 (patch) | |
tree | 472e54e664c713a583468421a0f7af83f833aae6 /ipalib/public.py | |
parent | a1b5d928fbf989a45c0fabb599d25e80964aacee (diff) | |
download | freeipa.git-5bf6a9eb097fbaf1c048a4487e6ca6b9605b9f05.tar.gz freeipa.git-5bf6a9eb097fbaf1c048a4487e6ca6b9605b9f05.tar.xz freeipa.git-5bf6a9eb097fbaf1c048a4487e6ca6b9605b9f05.zip |
185: Renamed public.prop to Property
Diffstat (limited to 'ipalib/public.py')
-rw-r--r-- | ipalib/public.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ipalib/public.py b/ipalib/public.py index 1c51df49..4b988b51 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -252,23 +252,23 @@ class Command(plugable.Plugin): class obj(plugable.Plugin): __public__ = frozenset(( 'Method', - 'prop', + 'Property', )) __Method = None - __prop = None + __Property = None def __get_Method(self): return self.__Method Method = property(__get_Method) - def __get_prop(self): - return self.__prop - prop = property(__get_prop) + def __get_Property(self): + return self.__Property + Property = property(__get_Property) def finalize(self, api): super(obj, self).finalize(api) self.__Method = self.__create_ns('Method') - self.__prop = self.__create_ns('prop') + self.__Property = self.__create_ns('Property') def __create_ns(self, name): return plugable.NameSpace(self.__filter(name)) @@ -321,18 +321,18 @@ class Method(attr, Command): def get_options(self): for proxy in Command.get_options(self): yield proxy - if self.obj is not None and self.obj.prop is not None: - for proxy in self.obj.prop(): + if self.obj is not None and self.obj.Property is not None: + for proxy in self.obj.Property(): yield proxy -class prop(attr, option): +class Property(attr, option): __public__ = attr.__public__.union(option.__public__) def get_doc(self, _): - return _('prop doc') + return _('Property doc') class PublicAPI(plugable.API): def __init__(self): - super(PublicAPI, self).__init__(Command, obj, Method, prop) + super(PublicAPI, self).__init__(Command, obj, Method, Property) |