summaryrefslogtreecommitdiff
path: root/openerp/report/render/html2html
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2016-08-09 11:00:54 +0200
committerRaphael Collet <rco@openerp.com>2016-08-18 09:32:45 +0200
commit16dece86b1023d0b494a2fe7e84dc820fba70fe0 (patch)
treed4f662c178d3cac293083f14d7663a9b29847966 /openerp/report/render/html2html
parentd85bf789767cf2e781777dfcb54d5564cc05548f (diff)
[MIG] openerp.report: convert to the new API
Diffstat (limited to 'openerp/report/render/html2html')
-rw-r--r--openerp/report/render/html2html/__init__.py2
-rw-r--r--openerp/report/render/html2html/html2html.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/openerp/report/render/html2html/__init__.py b/openerp/report/render/html2html/__init__.py
index ade973224e5..41fa95cf4a0 100644
--- a/openerp/report/render/html2html/__init__.py
+++ b/openerp/report/render/html2html/__init__.py
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from html2html import parseString
+from .html2html import parseString
diff --git a/openerp/report/render/html2html/html2html.py b/openerp/report/render/html2html/html2html.py
index 8f1156fc4ef..b66d44a5a5f 100644
--- a/openerp/report/render/html2html/html2html.py
+++ b/openerp/report/render/html2html/html2html.py
@@ -1,13 +1,15 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from openerp.report.render.rml2pdf import utils
-import copy
import base64
+import copy
import cStringIO
import re
+
from reportlab.lib.utils import ImageReader
+from openerp.report.render.rml2pdf import utils
+
_regex = re.compile('\[\[(.+?)\]\]')
utils._regex = re.compile('\[\[\s*(.+?)\s*\]\]',re.DOTALL)
class html2html(object):