tag 504040 fixed-upstream patch
thanks

Hi,

> Some subdirectories are incorrectly treated as a picture.
> This results in files in such directories being difficult to access.
> I think the bug is with any directory that contains a ".".

You were right, thanks a lot for the report.

The patch that fixes this is the following (and has been incorporated
in the development version):

Fri Oct 31 08:18:30 CET 2008  Alexandre Rossi <[EMAIL PROTECTED]>
  * do not break up filename and extension for directories
diff -rN -u old-lazygal/lazygal/sourcetree.py new-lazygal/lazygal/sourcetree.py
--- old-lazygal/lazygal/sourcetree.py   2008-10-31 08:21:29.000000000 +0100
+++ new-lazygal/lazygal/sourcetree.py   2008-10-31 08:21:30.000000000 +0100
@@ -155,6 +155,10 @@
     def __init__(self, source, dirnames, filenames, album):
         File.__init__(self, self._path_to_unicode(source), album)

+        # No breaking up of filename and extension for directories
+        self.name = self.filename
+        self.extension = None
+
         self.dirnames = map(self._path_to_unicode, dirnames)
         self.filenames = map(self._path_to_unicode, filenames)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to