From 14b7e37bf5d01391a34b09baff483528ea4cbf66 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 8 Dec 2010 14:13:28 +0100 Subject: [PATCH] [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 --- bin/service/web_services.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/service/web_services.py b/bin/service/web_services.py index 0af15691bea..7cdcd040d88 100644 --- a/bin/service/web_services.py +++ b/bin/service/web_services.py @@ -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)