Package: lazygal
Version: 0.6.1-1
Severity: normal
When there are a video in the album, and lazygal is ask to keep original
copies of the photos, it will failed when generating the xhtml page with
the following traceback:
Traceback (most recent call last):
File "/usr/bin/lazygal", line 319, in <module>
options.check_all_dirs, options.clean_dest)
File "/usr/lib/python2.6/dist-packages/lazygal/generators.py", line 763, in
generate
destgal.make(force=True) # avoid another needs_build() call in make()
File "/usr/lib/python2.6/dist-packages/lazygal/generators.py", line 439, in
make
super(WebalbumDir, self).make(force or needed_build)
File "/usr/lib/python2.6/dist-packages/lazygal/make.py", line 110, in make
d.make() # dependency building not forced
File "/usr/lib/python2.6/dist-packages/lazygal/make.py", line 111, in make
self.call_build()
File "/usr/lib/python2.6/dist-packages/lazygal/make.py", line 120, in
call_build
self.build()
File "/usr/lib/python2.6/dist-packages/lazygal/genpage.py", line 238, in build
tpl_values['original_link'] = self.image.filename
AttributeError: 'WebalbumVideoPage' object has no attribute 'image'
The attached patch fix the generation but is probably not the correct
way of doing it: One should provide original link also for video.
--- lazygal-0.6.1.orig/lazygal/genpage.py
+++ lazygal-0.6.1/lazygal/genpage.py
@@ -227,7 +227,7 @@ class WebalbumBrowsePage(WebalbumPage):
tpl_values['osize_links'] = self._get_osize_links(self.media.name)
tpl_values['rel_root'] = self.dir.source_dir.rel_root()
- if self.dir.album.original:
+ if self.dir.album.original and not isinstance(self.image.is,WebalbumVideoPage):
if self.dir.album.orig_base:
tpl_values['original_link'] = os.path.join(\
self.dir.source_dir.rel_root(),
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (700, 'unstable'), (500, 'oldstable'), (500, 'testing'), (50,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lazygal depends on:
ii python 2.6.6-14 interactive high-level object-orie
ii python-genshi 0.6-1+b1 Python XML-based template engine
ii python-imaging 1.1.7-2+b1 Python Imaging Library
ii python-pyexiv2 0.3.0-4+b1 Python binding to Exiv2
ii python2.6 2.6.7-1 An interactive high-level object-o
ii python2.7 2.7.2-1 An interactive high-level object-o
lazygal recommends no packages.
Versions of packages lazygal suggests:
ii gstreamer0.10-plugins-base 0.10.34-1 GStreamer plugins from the "base"
ii python-gst0.10 0.10.21-2+b1 generic media-playing framework (P
-- debconf-show failed
--
Rémi Vanicat