Commit 05e7c11f authored by Jean-Paul Smets's avatar Jean-Paul Smets

Updated to follow new Document.py API.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13800 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67478051
...@@ -531,11 +531,11 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0"> ...@@ -531,11 +531,11 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0">
REQUEST.RESPONSE.setHeader('Content-disposition', 'attachment;; filename="%s.pdf"' % self.title_or_id()) REQUEST.RESPONSE.setHeader('Content-disposition', 'attachment;; filename="%s.pdf"' % self.title_or_id())
return data return data
# now for other formats # now for other formats
if not tmp_ooo.isAllowed(format): if not tmp_ooo.isTargetFormatAllowed(format):
errstr='%s format is not supported' % format errstr = '%s format is not supported' % format
return tmp_ooo.returnMessage(errstr) return tmp_ooo.returnMessage(errstr)
try: try:
mime,data=tmp_ooo._makeFile(format) mime, data = tmp_ooo.convert(format)
except xmlrpclib.Fault,e: except xmlrpclib.Fault,e:
return tmp_ooo.returnMessage('Problem: %s' % str(e)) return tmp_ooo.returnMessage('Problem: %s' % str(e))
if REQUEST is not None: if REQUEST is not 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