[conduit: 51/138] Sinks don't call refresh, so get the photo album to poke inside the put()



commit e21a0be2ea475390290b05e2d94b2a10af03cf48
Author: John Carr <john carr unrouted co uk>
Date:   Thu Apr 30 02:38:16 2009 -0700

    Sinks don't call refresh, so get the photo album to poke inside the put()
---
 conduit/modules/iPodModule/iPodModule.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/conduit/modules/iPodModule/iPodModule.py b/conduit/modules/iPodModule/iPodModule.py
index 2bdf732..3de2a0f 100644
--- a/conduit/modules/iPodModule/iPodModule.py
+++ b/conduit/modules/iPodModule/iPodModule.py
@@ -447,6 +447,7 @@ class IPodPhotoSink(IPodBase):
 
     def put(self, f, overwrite, LUID=None):
         photo = self.db.new_Photo(filename=f.get_local_uri())
+        self.album = self._get_photo_album(self.albumName)
         self.album.add(photo)
         gpod.itdb_photodb_write(self.db._itdb, None)
         return conduit.datatypes.Rid(str(photo['id']), None, hash(None))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]