[REF] netsvc: removed abortResponse method.
bzr revid: vmt@openerp.com-20110729094122-8c2q2c1nx0x7jdmf
This commit is contained in:
parent
c4d7dde645
commit
40bde558c5
|
@ -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.
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue