[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:
Olivier Dony 2010-12-08 14:13:28 +01:00
parent 0fe0c17068
commit 14b7e37bf5
1 changed files with 4 additions and 2 deletions

View File

@ -588,8 +588,10 @@ class objects_proxy(netsvc.ExportService):
def dispatch(self, method, auth, params):
(db, uid, passwd ) = params[0:3]
params = params[3:]
if method not in ['execute','exec_workflow','obj_list']:
raise KeyError("Method not supported %s" % method)
if method == 'obj_list':
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)
ls = netsvc.LocalService('object_proxy')
fn = getattr(ls, method)