Skip to content

Commit

Permalink
Fix report_webkit precise mode to support set_context hook
Browse files Browse the repository at this point in the history
  • Loading branch information
nbessi authored and Stefan Rijnhart committed Jul 2, 2014
1 parent 4192e7e commit 46a02cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/report_webkit/webkit_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def create_single_pdf(self, cursor, uid, ids, data, report_xml, context=None):
body_mako_tpl = mako_template(template)
helper = WebKitHelper(cursor, uid, report_xml.id, context)
if report_xml.precise_mode:
objs = self.parser_instance.localcontext['objects']
for obj in objs:
parser_instance.localcontext['objects'] = [obj]
try :
Expand Down

0 comments on commit 46a02cd

Please sign in to comment.