Attachment 'Fix.txt'

Download

   1 --- \\Wiki\Transfer\Linke\RecentChanges.py.orig1.3.4	Mon Sep 19 10:11:38 2005
   2 +++ \\Wiki\Transfer\Linke\RecentChanges.py	Tue Oct 04 17:28:28 2005
   3 @@ -12,6 +12,7 @@
   4  from MoinMoin import util, wikiutil
   5  from MoinMoin.Page import Page
   6  from MoinMoin.logfile import editlog
   7 +from MoinMoin import config
   8  
   9  _DAYS_SELECTION = [1, 2, 3, 7, 14, 30, 60, 90]
  10  _MAX_DAYS = 7
  11 @@ -28,7 +29,8 @@
  12      _ = request.getText
  13      if line.action[:3] == 'ATT':
  14          import urllib
  15 -        filename = urllib.unquote(line.extra)
  16 +        filename = urllib.unquote(line.extra.encode(config.charset))
  17 +        filename = filename.decode(config.charset)
  18          if line.action == 'ATTNEW':
  19              comment = _("Upload of attachment '%(filename)s'.") % {'filename': filename}
  20          elif line.action == 'ATTDEL':

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] (2005-10-04 16:10:58, 0.8 KB) [[attachment:Fix.txt]]
 All files | Selected Files: delete move to page copy to page

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