>> There was an issue close to this for dirs that do not contain any
>> pictures, and whose childs do not either. I just fixed it in the
>> developement version.
>
> This may be the problem I see.
> This problem may be related to the dot in directory problem.
> The examples of empty placeholders I noticed are for directories
> that contain supposed images (directories mislabeled as images).

Okay so the patch for this is the following.

Fri Oct 31 20:32:42 CET 2008  Alexandre Rossi <[EMAIL PROTECTED]>
  * no subgals for dirs with no photos

  This is maybe Debian bug #504041.
diff -rN -u old-lazygal/lazygal/generators.py new-lazygal/lazygal/generators.py
--- old-lazygal/lazygal/generators.py   2008-11-01 11:41:55.000000000 +0100
+++ new-lazygal/lazygal/generators.py   2008-11-01 11:41:55.000000000 +0100
@@ -484,6 +484,12 @@

         self.dirzip = None

+    def get_all_images_count(self):
+        all_images_count = len(self.images_names)
+        for subdir in self.subdirs:
+            all_images_count += subdir.get_all_images_count()
+        return all_images_count
+
     def get_all_images_paths(self):
         all_images_paths = map(lambda fn: os.path.join(self.path, fn),
                                self.images_names)
@@ -915,6 +921,12 @@

             destgal = WebalbumDir(dir, subdirs, self, sane_dest_dir,
clean_dest)
             light_destgal = LightWebalbumDir(dir, subdirs, self, sane_dest_dir)
+
+            if light_destgal.get_all_images_count() < 1:
+                self.log(_("(%s) and childs have no photos, skipped")
+                           % dir.path)
+                continue
+
             if not dir.is_album_root():
                 container_dirname = os.path.dirname(root)
                 if not dir_heap.has_key(container_dirname):

Alex



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

Reply via email to