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
=== modified file 'report_webkit_custom_paper_size/__init__.py'
--- report_webkit_custom_paper_size/__init__.py 2014-01-23 16:38:05 +0000
+++ report_webkit_custom_paper_size/__init__.py 2014-06-02 16:26:30 +0000
@@ -7,6 +7,7 @@
7import logging7import logging
8import subprocess8import subprocess
9from openerp.tools.translate import _9from openerp.tools.translate import _
10from openerp.osv.osv import except_osv
1011
1112
12_logger = logging.getLogger(__name__)13_logger = logging.getLogger(__name__)
@@ -33,7 +34,7 @@
33 ),34 ),
34 'w'35 'w'
35 )36 )
36 head_file.write(header)37 head_file.write(self._sanitize_html(header))
37 head_file.close()38 head_file.close()
38 file_to_del.append(head_file.name)39 file_to_del.append(head_file.name)
39 command.extend(['--header-html', head_file.name])40 command.extend(['--header-html', head_file.name])
@@ -44,7 +45,7 @@
44 ),45 ),
45 'w'46 'w'
46 )47 )
47 foot_file.write(footer)48 foot_file.write(self._sanitize_html(footer))
48 foot_file.close()49 foot_file.close()
49 file_to_del.append(foot_file.name)50 file_to_del.append(foot_file.name)
50 command.extend(['--footer-html', foot_file.name])51 command.extend(['--footer-html', foot_file.name])
@@ -69,7 +70,7 @@
69 for html in html_list :70 for html in html_list :
70 html_file = file(os.path.join(tmp_dir, str(time.time()) + str(count) +'.body.html'), 'w')71 html_file = file(os.path.join(tmp_dir, str(time.time()) + str(count) +'.body.html'), 'w')
71 count += 172 count += 1
72 html_file.write(html)73 html_file.write(self._sanitize_html(html))
73 html_file.close()74 html_file.close()
74 file_to_del.append(html_file.name)75 file_to_del.append(html_file.name)
75 command.append(html_file.name)76 command.append(html_file.name)

Subscribers

People subscribed via source and target branches