changeset 98:b2f96072b8d7

file read bug fixed "outfile.seek(0)"
author Magnus Schieder <mschieder@intevation.de>
date Thu, 07 Jun 2018 14:33:44 +0200
parents 8592603e4471
children 349d49bb69f4
files odfcast/convert.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/odfcast/convert.py	Fri Aug 25 20:57:11 2017 +0200
+++ b/odfcast/convert.py	Thu Jun 07 14:33:44 2018 +0200
@@ -153,6 +153,7 @@
                 t.render(datadict)
                 outfile.close()
                 outfile = tfile
+                outfile.seek(0)
             except Exception, e:
                 log.exception("Template error")
                 return TemplateErrorResponse(details=str(e))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)