I've run into problems.
Becuace I'm extending the photo desklet for loading whole
dirs into a list, the script must check if these files in a
dir are images. (
http://adesklets.sourceforge.net/forum/viewtopic.php?t=214
)
try:
pic = adesklets.load_image(self.photo_desklet.actfile())
...
except adesklets.ADESKLETSError, (errno, strerror):
print str(errno) + ": " + strerror
self.photo_desklet._all_ok = strerror
adesklets.content_set_image(self._buffer)
I load "Thumbs.db", becuase I share this dir with Windows -
it is not an image.
"except" works but after that I've got (content_set_image
self._buffer):
adesklets.error_handler.ADESKLETSError: adesklets command error - could not load image '/path/to/image/Thumbs.dbcontent_set_image 2' - file does not exist
Is there a way to "clean" the error? What am I doing
wrong?
The alpha version is there:
http://www.drama.pl/~goldie/photo/photo-0.0.6-alpha.tar.bz2
sample files.list:
/path/to/images
/path/to/other_images/im1.jpg
/path/to/other_images/im2.jpg