[FIX] osv.obj_list is broken via RPC and should not be available anymore
lp bug: https://launchpad.net/bugs/632195 fixed bzr revid: odo@openerp.com-20101208131328-gycbi36423txdnc1
This commit is contained in:
parent
0fe0c17068
commit
14b7e37bf5
|
@ -588,8 +588,10 @@ class objects_proxy(netsvc.ExportService):
|
||||||
def dispatch(self, method, auth, params):
|
def dispatch(self, method, auth, params):
|
||||||
(db, uid, passwd ) = params[0:3]
|
(db, uid, passwd ) = params[0:3]
|
||||||
params = params[3:]
|
params = params[3:]
|
||||||
if method not in ['execute','exec_workflow','obj_list']:
|
if method == 'obj_list':
|
||||||
raise KeyError("Method not supported %s" % method)
|
raise NameError("obj_list has been discontinued via RPC as of 6.0, please query ir.model directly!")
|
||||||
|
if method not in ['execute','exec_workflow']:
|
||||||
|
raise NameError("Method not available %s" % method)
|
||||||
security.check(db,uid,passwd)
|
security.check(db,uid,passwd)
|
||||||
ls = netsvc.LocalService('object_proxy')
|
ls = netsvc.LocalService('object_proxy')
|
||||||
fn = getattr(ls, method)
|
fn = getattr(ls, method)
|
||||||
|
|
Loading…
Reference in New Issue