[REF] netsvc: removed exportMethod that was only used with the previously removed...
authorVo Minh Thu <vmt@openerp.com>
Thu, 28 Jul 2011 12:39:16 +0000 (14:39 +0200)
committerVo Minh Thu <vmt@openerp.com>
Thu, 28 Jul 2011 12:39:16 +0000 (14:39 +0200)
bzr revid: vmt@openerp.com-20110728123916-cobk8vk2oktkidke

openerp/netsvc.py
openerp/osv/osv.py
openerp/report/interface.py
openerp/wizard/__init__.py
openerp/workflow/wkf_service.py

index 81a97f1..7fdf927 100644 (file)
@@ -69,7 +69,6 @@ class Service(object):
     def __init__(self, name, audience=''):
         Service._services[name] = self
         self.__name = name
-        self._methods = {}
 
     def joinGroup(self, name):
         raise Exception("No group for local services")
@@ -84,10 +83,6 @@ class Service(object):
         if cls.exists(name):
             cls._services.pop(name)
 
-    def exportMethod(self, method):
-        if callable(method):
-            self._methods[method.__name__] = method
-
     def abortResponse(self, error, description, origin, details):
         if not tools.config['debug_mode']:
             raise Exception("%s -- %s\n\n%s"%(origin, description, details))
index 1327efe..852e6b7 100644 (file)
@@ -44,8 +44,6 @@ class object_proxy(netsvc.Service):
     def __init__(self):
         self.logger = logging.getLogger('web-services')
         netsvc.Service.__init__(self, 'object_proxy', audience='')
-        self.exportMethod(self.exec_workflow)
-        self.exportMethod(self.execute)
 
     def check(f):
         @wraps(f)
index 178c015..de2a3bb 100644 (file)
@@ -52,7 +52,6 @@ class report_int(netsvc.Service):
         # TODO the reports have methods with a 'title' kwarg that is redundant with this attribute
         self.title = None
         #self.joinGroup('report')
-        self.exportMethod(self.create)
 
     def create(self, cr, uid, ids, datas, context=None):
         return False
index df0b942..536d930 100644 (file)
@@ -44,7 +44,6 @@ class interface(netsvc.Service):
     def __init__(self, name):
         assert not self.exists('wizard.'+name), 'The wizard "%s" already exists!' % (name,)
         super(interface, self).__init__('wizard.'+name)
-        self.exportMethod(self.execute)
         self.wiz_name = name
 
     def translate_view(self, cr, node, state, lang):
index 6f5059e..3684ac0 100644 (file)
@@ -29,13 +29,6 @@ import openerp.pooler as pooler
 class workflow_service(netsvc.Service):
     def __init__(self, name='workflow', audience='*'):
         netsvc.Service.__init__(self, name, audience)
-        self.exportMethod(self.trg_write)
-        self.exportMethod(self.trg_delete)
-        self.exportMethod(self.trg_create)
-        self.exportMethod(self.trg_validate)
-        self.exportMethod(self.trg_redirect)
-        self.exportMethod(self.trg_trigger)
-        self.exportMethod(self.clear_cache)
         self.wkf_on_create_cache={}
 
     def clear_cache(self, cr, uid):