Skip to content

Commit

Permalink
[FIX] osv.obj_list is broken via RPC and should not be available anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
odony committed Dec 8, 2010
1 parent 0fe0c17 commit 14b7e37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/service/web_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,10 @@ def __init__(self, name="object"):
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)
Expand Down

0 comments on commit 14b7e37

Please sign in to comment.