Merge lp:~numerigraphe-team/report-print-send/7.0-report_webkit_custom_paper_size into lp:~bruno-bottacini/report-print-send/7.0-report_webkit_custom_paper_size

Proposed by Lionel Sausin - Initiatives/Numérigraphe
Status: Needs review
Proposed branch: lp:~numerigraphe-team/report-print-send/7.0-report_webkit_custom_paper_size
Merge into: lp:~bruno-bottacini/report-print-send/7.0-report_webkit_custom_paper_size
Diff against target: 38 lines (+4/-3)
1 file modified
report_webkit_custom_paper_size/__init__.py (+4/-3)
To merge this branch: bzr merge lp:~numerigraphe-team/report-print-send/7.0-report_webkit_custom_paper_size
Reviewer Review Type Date Requested Status
bruno bottacini Pending
Review via email: mp+219656@code.launchpad.net

Description of the change

This branch updates the code reused as white-box from lp:~numerigraphe-team/report-print-send/7.0-report_webkit_custom_paper_size : it was changed upstream to make it compatible with wkhtmltopdf 0.12

To post a comment you must log in.
13. By Numérigraphe

[FIX] missing import

Unmerged revisions

13. By Numérigraphe

[FIX] missing import

12. By Numérigraphe

[FIX] update white-box reused code (makes it compatible with latest wkhtmltopdf)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'report_webkit_custom_paper_size/__init__.py'
2--- report_webkit_custom_paper_size/__init__.py 2014-01-23 16:38:05 +0000
3+++ report_webkit_custom_paper_size/__init__.py 2014-06-02 16:26:30 +0000
4@@ -7,6 +7,7 @@
5 import logging
6 import subprocess
7 from openerp.tools.translate import _
8+from openerp.osv.osv import except_osv
9
10
11 _logger = logging.getLogger(__name__)
12@@ -33,7 +34,7 @@
13 ),
14 'w'
15 )
16- head_file.write(header)
17+ head_file.write(self._sanitize_html(header))
18 head_file.close()
19 file_to_del.append(head_file.name)
20 command.extend(['--header-html', head_file.name])
21@@ -44,7 +45,7 @@
22 ),
23 'w'
24 )
25- foot_file.write(footer)
26+ foot_file.write(self._sanitize_html(footer))
27 foot_file.close()
28 file_to_del.append(foot_file.name)
29 command.extend(['--footer-html', foot_file.name])
30@@ -69,7 +70,7 @@
31 for html in html_list :
32 html_file = file(os.path.join(tmp_dir, str(time.time()) + str(count) +'.body.html'), 'w')
33 count += 1
34- html_file.write(html)
35+ html_file.write(self._sanitize_html(html))
36 html_file.close()
37 file_to_del.append(html_file.name)
38 command.append(html_file.name)

Subscribers

People subscribed via source and target branches