Commits

Joe Judge committed dd4df3f

add thumbnails for albums, fix indents

  • Participants
  • Parent commits 32d1860

Comments (0)

Files changed (3)

File syncr/app/picasaweb.py

                     'No such album found for: %s (found %s)' % (album, albums))
             album = albums[0]
 
-        #print "\nDEBUG: album = %s" % album # joe debug
-        #print "\nDEBUG: album = %s" % dir(album) # joe debug
-        #print "\nDEBUG: album = %s" % album.gphoto_id.text # joe debug
-        #print "\nDEBUG: album.media = %s" % album.media # joe debug
-        #print "\nDEBUG: album.media.thumbnail = %s" % dir(album.media.thumbnail[0])
-        print "\nDEBUG: album thumbnail = %s" % album.media.thumbnail[0].url
-        print "\nDEBUG: album %s x %s" % \
-                (album.media.thumbnail[0].height,
-                 album.media.thumbnail[0].width)
-
-
         updated = datetime(*strptime(album.updated.text[:-4] + '000Z',
                            '%Y-%m-%dT%H:%M:%S.000Z')[:7])
         gphoto_id = album.gphoto_id.text

File syncr/picasaweb/management/commands/sync_picasaweb.py

             print 'Updating picasaweb albums for %s' % username
             for picasaweb_album in args:
                 ps.syncAlbum(picasaweb_album, username=picasaweb_user)
+

File syncr/picasaweb/models.py

     thumbnail_url = models.URLField()
     thumbnail_height = models.IntegerField()
     thumbnail_width = models.IntegerField()
-    
+
     photos = models.ManyToManyField('Photo')
     access = models.CharField(max_length=10, choices=PICASAWEB_ACCESS)