Attachment 'filesys.py.patch'

Download

   1 diff -r 63f2d05c7c20 MoinMoin/util/filesys.py
   2 --- a/MoinMoin/util/filesys.py	Wed Dec 16 09:58:56 2009 +0100
   3 +++ b/MoinMoin/util/filesys.py	Fri Jan 08 12:26:51 2010 -0500
   4 @@ -311,12 +311,13 @@
   5          @return the real case of path or None
   6          """
   7          try:
   8 -            from Carbon import File
   9 +            from filecase import get_canonical_case
  10              try:
  11 -                return File.FSRef(path).as_pathname()
  12 -            except File.Error:
  13 +                return get_canonical_case(path)
  14 +            except IOError:
  15                  return None
  16          except ImportError:
  17 +            logging.error("Can't find filecase.")
  18              return None
  19  
  20  else:

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] (2010-01-08 17:32:40, 1.2 KB) [[attachment:filecase.c]]
  • [get | view] (2010-01-08 17:31:02, 0.7 KB) [[attachment:filesys.py.patch]]
  • [get | view] (2010-01-08 17:33:14, 0.4 KB) [[attachment:setup.py]]
 All files | Selected Files: delete move to page copy to page

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