summaryrefslogtreecommitdiff
path: root/openerp/exceptions.py
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2016-05-25 11:40:51 +0200
committerChristophe Matthieu <chm@odoo.com>2016-06-14 13:12:14 +0200
commitb3302398bc79f107588ff755666bf74a2ef4e11a (patch)
treeab80d18a299004f0afd01dc2d051990356cded5f /openerp/exceptions.py
parent4530f65211959e8911bdccbb8acd9e1826ad8bde (diff)
[IMP] ir.qweb: extract and create independent qweb class from ir.qweb
The goal is to make the code more readable, more easily be optimized, allowing to share the library "QWEB" (python and js) separately Odoo.
Diffstat (limited to 'openerp/exceptions.py')
-rw-r--r--openerp/exceptions.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/openerp/exceptions.py b/openerp/exceptions.py
index 8d0bb779d3e..d83e350c624 100644
--- a/openerp/exceptions.py
+++ b/openerp/exceptions.py
@@ -12,7 +12,6 @@ If you consider introducing new exceptions, check out the test_exceptions addon.
import logging
from inspect import currentframe
-from lxml import etree
from tools.func import frame_codeinfo
_logger = logging.getLogger(__name__)
@@ -92,12 +91,6 @@ class DeferredException(Exception):
self.message = msg
self.traceback = tb
+
class QWebException(Exception):
- def __init__(self, message, **kw):
- super(QWebException, self).__init__(message)
- self.qweb = dict(kw)
-
- def pretty_xml(self):
- if 'node' not in self.qweb:
- return ''
- return etree.tostring(self.qweb['node'], pretty_print=True)
+ pass