Fix for futur version of relatorio that no more return StringIO

This commit is contained in:
Cédric Krier committed 2008-11-05 10:41:30 +01:00
1 parent ffe17a6c91
commit 7dd9bbdbf4
1 file changed
+3 -1
+3 -1
View File
@@ -302,7 +302,9 @@ class Report(object):
data = rel_report(objects, **localcontext).render().getvalue()
else:
localcontext['objects'] = objects
data = rel_report(**localcontext).render().getvalue()
data = rel_report(**localcontext).render()
if hasattr(data, 'getvalue'):
data = data.getvalue()
os.remove(path)
output_format = report.output_format.format
if output_format == 'pdf':