[FIX] netsvc: revert introduction of cgitb
(was done at revno 3452, revision-id vmt@openerp.com-20110609073416-ml22a1vhtizl3z71) lp bug: https://launchpad.net/bugs/797690 fixed bzr revid: vmt@openerp.com-20110623143651-v1x7obfnj48khsdj
This commit is contained in:
parent
ba236e2727
commit
93e3a1f366
|
@ -24,7 +24,6 @@
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
import cgitb
|
|
||||||
import errno
|
import errno
|
||||||
import heapq
|
import heapq
|
||||||
import logging
|
import logging
|
||||||
|
@ -440,7 +439,7 @@ class OpenERPDispatcher:
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.log('exception', tools.exception_to_unicode(e))
|
self.log('exception', tools.exception_to_unicode(e))
|
||||||
tb = getattr(e, 'traceback', sys.exc_info())
|
tb = getattr(e, 'traceback', sys.exc_info())
|
||||||
tb_s = cgitb.text(tb)
|
tb_s = "".join(traceback.format_exception(*tb))
|
||||||
if tools.config['debug_mode'] and isinstance(tb, types.TracebackType):
|
if tools.config['debug_mode'] and isinstance(tb, types.TracebackType):
|
||||||
import pdb
|
import pdb
|
||||||
pdb.post_mortem(tb[2])
|
pdb.post_mortem(tb[2])
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -89,7 +89,7 @@ if os.name == 'nt':
|
||||||
"pydot", "asyncore","asynchat", "reportlab", "vobject",
|
"pydot", "asyncore","asynchat", "reportlab", "vobject",
|
||||||
"HTMLParser", "select", "mako", "poplib",
|
"HTMLParser", "select", "mako", "poplib",
|
||||||
"imaplib", "smtplib", "email", "yaml", "DAV",
|
"imaplib", "smtplib", "email", "yaml", "DAV",
|
||||||
"uuid", "commands", "openerp", # TODO is it necessary to include cgitb?
|
"uuid", "commands", "openerp",
|
||||||
],
|
],
|
||||||
"excludes" : ["Tkconstants","Tkinter","tcl"],
|
"excludes" : ["Tkconstants","Tkinter","tcl"],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue