Removed small usage of openerp.http

bzr revid: nicolas.vanhoren@openerp.com-20131018121243-o1ua7s85x75fwyuq
This commit is contained in:
niv-openerp 2013-10-18 14:12:43 +02:00
parent bf25c5ce8f
commit 04e9c7a19f
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,6 @@ def exp_import_edi_document(db_name, uid, passwd, edi_document, context=None):
def exp_import_edi_url(db_name, uid, passwd, edi_url, context=None):
return _edi_dispatch(db_name, 'import_edi', uid, None, edi_url)
@openerp.http.rpc('edi')
def dispatch(method, params):
if method in ['import_edi_document', 'import_edi_url']:
(db, uid, passwd) = params[0:3]
@ -63,4 +62,6 @@ def dispatch(method, params):
fn = globals()['exp_' + method]
return fn(*params)
openerp.service.wsgi_server.register_rpc_endpoint('edi', dispatch)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: