[REF] netsvc: Service._groups and joinGroup are unused.
bzr revid: vmt@openerp.com-20110728131034-q5wpiwqh7f860l5s
This commit is contained in:
parent
e193912717
commit
5f3f9e820e
|
@ -70,10 +70,6 @@ class Service(object):
|
||||||
Service._services[name] = self
|
Service._services[name] = self
|
||||||
self.__name = name
|
self.__name = name
|
||||||
|
|
||||||
def joinGroup(self, name):
|
|
||||||
raise Exception("No group for local services")
|
|
||||||
#GROUPS.setdefault(name, {})[self.__name] = self
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def exists(cls, name):
|
def exists(cls, name):
|
||||||
return name in cls._services
|
return name in cls._services
|
||||||
|
@ -104,7 +100,6 @@ class ExportService(object):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_services = {}
|
_services = {}
|
||||||
_groups = {}
|
|
||||||
_logger = logging.getLogger('web-services')
|
_logger = logging.getLogger('web-services')
|
||||||
|
|
||||||
def __init__(self, name, audience=''):
|
def __init__(self, name, audience=''):
|
||||||
|
@ -112,9 +107,6 @@ class ExportService(object):
|
||||||
self.__name = name
|
self.__name = name
|
||||||
self._logger.debug("Registered an exported service: %s" % name)
|
self._logger.debug("Registered an exported service: %s" % name)
|
||||||
|
|
||||||
def joinGroup(self, name):
|
|
||||||
ExportService._groups.setdefault(name, {})[self.__name] = self
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def getService(cls,name):
|
def getService(cls,name):
|
||||||
return cls._services[name]
|
return cls._services[name]
|
||||||
|
|
|
@ -51,7 +51,6 @@ class report_int(netsvc.Service):
|
||||||
self.name2 = '.'.join(name.split('.')[1:])
|
self.name2 = '.'.join(name.split('.')[1:])
|
||||||
# TODO the reports have methods with a 'title' kwarg that is redundant with this attribute
|
# TODO the reports have methods with a 'title' kwarg that is redundant with this attribute
|
||||||
self.title = None
|
self.title = None
|
||||||
#self.joinGroup('report')
|
|
||||||
|
|
||||||
def create(self, cr, uid, ids, datas, context=None):
|
def create(self, cr, uid, ids, datas, context=None):
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -50,7 +50,6 @@ from cStringIO import StringIO
|
||||||
class db(netsvc.ExportService):
|
class db(netsvc.ExportService):
|
||||||
def __init__(self, name="db"):
|
def __init__(self, name="db"):
|
||||||
netsvc.ExportService.__init__(self, name)
|
netsvc.ExportService.__init__(self, name)
|
||||||
self.joinGroup("web-services")
|
|
||||||
self.actions = {}
|
self.actions = {}
|
||||||
self.id = 0
|
self.id = 0
|
||||||
self.id_protect = threading.Semaphore()
|
self.id_protect = threading.Semaphore()
|
||||||
|
@ -358,7 +357,6 @@ class db(netsvc.ExportService):
|
||||||
class common(netsvc.ExportService):
|
class common(netsvc.ExportService):
|
||||||
def __init__(self,name="common"):
|
def __init__(self,name="common"):
|
||||||
netsvc.ExportService.__init__(self,name)
|
netsvc.ExportService.__init__(self,name)
|
||||||
self.joinGroup("web-services")
|
|
||||||
|
|
||||||
def dispatch(self, method, auth, params):
|
def dispatch(self, method, auth, params):
|
||||||
logger = netsvc.Logger()
|
logger = netsvc.Logger()
|
||||||
|
@ -553,7 +551,6 @@ GNU Public Licence.
|
||||||
class objects_proxy(netsvc.ExportService):
|
class objects_proxy(netsvc.ExportService):
|
||||||
def __init__(self, name="object"):
|
def __init__(self, name="object"):
|
||||||
netsvc.ExportService.__init__(self,name)
|
netsvc.ExportService.__init__(self,name)
|
||||||
self.joinGroup('web-services')
|
|
||||||
|
|
||||||
def dispatch(self, method, auth, params):
|
def dispatch(self, method, auth, params):
|
||||||
(db, uid, passwd ) = params[0:3]
|
(db, uid, passwd ) = params[0:3]
|
||||||
|
@ -583,7 +580,6 @@ class objects_proxy(netsvc.ExportService):
|
||||||
class wizard(netsvc.ExportService):
|
class wizard(netsvc.ExportService):
|
||||||
def __init__(self, name='wizard'):
|
def __init__(self, name='wizard'):
|
||||||
netsvc.ExportService.__init__(self,name)
|
netsvc.ExportService.__init__(self,name)
|
||||||
self.joinGroup('web-services')
|
|
||||||
self.id = 0
|
self.id = 0
|
||||||
self.wiz_datas = {}
|
self.wiz_datas = {}
|
||||||
self.wiz_name = {}
|
self.wiz_name = {}
|
||||||
|
@ -642,7 +638,6 @@ class ExceptionWithTraceback(Exception):
|
||||||
class report_spool(netsvc.ExportService):
|
class report_spool(netsvc.ExportService):
|
||||||
def __init__(self, name='report'):
|
def __init__(self, name='report'):
|
||||||
netsvc.ExportService.__init__(self, name)
|
netsvc.ExportService.__init__(self, name)
|
||||||
self.joinGroup('web-services')
|
|
||||||
self._reports = {}
|
self._reports = {}
|
||||||
self.id = 0
|
self.id = 0
|
||||||
self.id_protect = threading.Semaphore()
|
self.id_protect = threading.Semaphore()
|
||||||
|
|
Loading…
Reference in New Issue