parent
c8e7057f2f
commit
82191446b3
|
@ -236,6 +236,8 @@ class OpenERPDispatcher:
|
|||
|
||||
def dispatch(self, service_name, method, params):
|
||||
try:
|
||||
if service_name not in GROUPS['web-services']:
|
||||
raise Exception("%s -- %s\n\n%s"%('AccessDenied', 'Service not available', ''))
|
||||
self.log('service', service_name)
|
||||
self.log('method', method)
|
||||
self.log('params', params)
|
||||
|
|
|
@ -86,7 +86,6 @@ class osv_pool(netsvc.Service):
|
|||
self._init = True
|
||||
self._init_parent = {}
|
||||
netsvc.Service.__init__(self, 'object_proxy', audience='')
|
||||
self.joinGroup('web-services')
|
||||
self.exportMethod(self.obj_list)
|
||||
self.exportMethod(self.exec_workflow)
|
||||
self.exportMethod(self.execute)
|
||||
|
|
Loading…
Reference in New Issue