Differences between revisions 2 and 3
Revision 2 as of 2006-01-30 09:40:32
Size: 801
Editor: ZoomQuiet
Comment:
Revision 3 as of 2009-12-25 07:09:27
Size: 805
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
attachment:snap060130-moinerror.png {{attachment:snap060130-moinerror.png}}

2006-01-30 hack BUG

  • 16:00 许 Hoxide 报告有新人,上传长中文路径的文件着到MoinMoin 造成更新汇报页面break:

snap060130-moinerror.png

  • 于是快速修改对应脚本:

   1 ## site-packages\MoinMoin\macro\RecentChanges.py line 29 左右
   2     if line.action[:3] == 'ATT':
   3         import urllib
   4         try:
   5             filename = urllib.unquote(line.extra)
   6         except:
   7             filename = "filename can not display...maybe UnicodeDecodeError"
   8         if line.action == 'ATTNEW':
   9             try:
  10                 comment = _("Upload of attachment '%(filename)s'.") % {'filename': filename}
  11             except:
  12                 comment = _("Upload of attachment '%(filename)s'.") % "filename can not display..."

FIXED

woodpecker-log/2006-01-30 (last edited 2009-12-25 07:09:27 by localhost)