[REF] netsvc: removed abortResponse method.

bzr revid: vmt@openerp.com-20110729094122-8c2q2c1nx0x7jdmf
This commit is contained in:
Vo Minh Thu 2011-07-29 11:41:22 +02:00
parent c4d7dde645
commit 40bde558c5
2 changed files with 1 additions and 7 deletions

View File

@ -85,12 +85,6 @@ class Service(object):
if cls.exists(name):
cls._services.pop(name)
def abortResponse(self, error, description, origin, details):
if not tools.config['debug_mode']:
raise Exception("%s -- %s\n\n%s"%(origin, description, details))
else:
raise
def LocalService(name):
# Special case for addons support, will be removed in a few days when addons
# are updated to directly use openerp.osv.osv.service.

View File

@ -155,7 +155,7 @@ class interface(netsvc.Service):
if isinstance(e, except_wizard) \
or isinstance(e, except_osv) \
or isinstance(e, except_orm):
self.abortResponse(2, e.name, 'warning', e.value)
netsvc.abort_response(2, e.name, 'warning', e.value)
else:
import traceback
tb_s = reduce(lambda x, y: x+y, traceback.format_exception(