Attachment 'render-as-opendocument.diff'

Download

   1 diff --git a/MoinMoin/action/RenderAsOpenDocument.py b/MoinMoin/action/RenderAsOpenDocument.py
   2 index c7ccbdc..e431bf0 100644
   3 --- a/MoinMoin/action/RenderAsOpenDocument.py
   4 +++ b/MoinMoin/action/RenderAsOpenDocument.py
   5 @@ -606,7 +606,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink"/>"""
   6      # Note that RuntimeErrors create their one headers and pages and thus should come before this: Now's too late
   7      # for HTML-Error pages.
   8      request.headers.add('Content-Type','application/vnd.oasis.opendocument.text')
   9 -    request.headers.add('Content-Disposition: attachment','filename="%s"'  % (filenameASCII))
  10 +    request.headers.add('Content-Disposition','attachment; filename="%s"' % (filenameASCII))
  11  
  12      # send data (without 'rb' the windows version doesn't work at all!)
  13      shutil.copyfileobj( open( pathToZIP, 'rb' ), request, 8192 )

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2012-01-02 06:44:04, 2.3 KB) [[attachment:modified_attachment_image.py]]
  • [get | view] (2026-03-05 13:27:16, 0.8 KB) [[attachment:render-as-opendocument.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.