mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
184: Renamed public.mthd class to Method
This commit is contained in:
@@ -251,15 +251,15 @@ class Command(plugable.Plugin):
|
||||
|
||||
class obj(plugable.Plugin):
|
||||
__public__ = frozenset((
|
||||
'mthd',
|
||||
'Method',
|
||||
'prop',
|
||||
))
|
||||
__mthd = None
|
||||
__Method = None
|
||||
__prop = None
|
||||
|
||||
def __get_mthd(self):
|
||||
return self.__mthd
|
||||
mthd = property(__get_mthd)
|
||||
def __get_Method(self):
|
||||
return self.__Method
|
||||
Method = property(__get_Method)
|
||||
|
||||
def __get_prop(self):
|
||||
return self.__prop
|
||||
@@ -267,7 +267,7 @@ class obj(plugable.Plugin):
|
||||
|
||||
def finalize(self, api):
|
||||
super(obj, self).finalize(api)
|
||||
self.__mthd = self.__create_ns('mthd')
|
||||
self.__Method = self.__create_ns('Method')
|
||||
self.__prop = self.__create_ns('prop')
|
||||
|
||||
def __create_ns(self, name):
|
||||
@@ -315,7 +315,7 @@ class attr(plugable.Plugin):
|
||||
self.__obj = api.obj[self.obj_name]
|
||||
|
||||
|
||||
class mthd(attr, Command):
|
||||
class Method(attr, Command):
|
||||
__public__ = attr.__public__.union(Command.__public__)
|
||||
|
||||
def get_options(self):
|
||||
@@ -335,4 +335,4 @@ class prop(attr, option):
|
||||
|
||||
class PublicAPI(plugable.API):
|
||||
def __init__(self):
|
||||
super(PublicAPI, self).__init__(Command, obj, mthd, prop)
|
||||
super(PublicAPI, self).__init__(Command, obj, Method, prop)
|
||||
|
||||
Reference in New Issue
Block a user