Commit e92e66dc authored by Nicolas Delaby's avatar Nicolas Delaby

call get_request only if needed

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40337 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 491f6efe
...@@ -203,8 +203,8 @@ class OOoBuilder(Implicit): ...@@ -203,8 +203,8 @@ class OOoBuilder(Implicit):
""" """
returns the OOo document returns the OOo document
""" """
request = get_request()
if name and not(source): if name and not(source):
request = get_request()
request.response.setHeader('Content-Disposition', request.response.setHeader('Content-Disposition',
'attachment; filename=%s.%s' % (name, extension)) 'attachment; filename=%s.%s' % (name, extension))
......
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