1. 2006-01-30 hack BUG

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

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

   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