Commit 6dd4c33e authored by Sebastien Robin's avatar Sebastien Robin

an instance of a class can be true or false so we need to check if context is None instead


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@891 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent adbbbfeb
......@@ -244,7 +244,10 @@ class ERP5ReportTool(ReportTool):
Render document using template
"""
context = kwargs.get('context') or self
context = kwargs.get('context',None)
if context is None:
context = self
encoding = kwargs.get('encoding') or 'iso-8859-1'
rhandler = ERP5ResourceHandler(context, getattr(self, 'resourcePath', None))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment