fixed small bugs cause by the last two commits
authorThomas Schmidt <tschmidt@debian.org>
Fri, 23 Oct 2009 23:01:53 +0000 (01:01 +0200)
committerThomas Schmidt <tschmidt@debian.org>
Fri, 23 Oct 2009 23:01:53 +0000 (01:01 +0200)
canola-flickr/flickr/model.py

index 85a25c7..c735b55 100644 (file)
@@ -408,13 +408,13 @@ class ContactModelFolder(ServiceModelFolder):
         if not self.has_avatar:
             return None
 
-        self.thumbnail = self.flickr_manager.search_buddyicon(self.user)
+        self.thumbnail = flickr_manager.search_buddyicon(self.user)
         if not self.thumbnail == None:
             return self.thumbnail
         else:
-            image_dir = self.flickr_manager.get_image_dir(buddyicons=True)
+            image_dir = flickr_manager.get_image_dir(buddyicons=True)
             if space_available(image_dir, bytes_required=1024*50):
-                url = self.flickr_manager.get_buddyicon_url(self.user)
+                url = flickr_manager.get_buddyicon_url(self.user)
                 self.thumbnail = download_manager.download_image(url, buddyicon=True)
 
                 # if we did not receive an buddyicon at the first try,
@@ -550,13 +550,13 @@ class GroupModelFolder(ImageListModelFolder):
         if not self.has_avatar:
             return None
 
-        self.thumbnail = self.flickr_manager.search_buddyicon(self.group)
+        self.thumbnail = flickr_manager.search_buddyicon(self.group)
         if not self.thumbnail == None:
             return self.thumbnail
         else:
-            image_dir = self.flickr_manager.get_image_dir(buddyicons=True)
+            image_dir = flickr_manager.get_image_dir(buddyicons=True)
             if space_available(image_dir, bytes_required=1024*50):
-                url = self.flickr_manager.get_buddyicon_url(self.group, group=True)
+                url = flickr_manager.get_buddyicon_url(self.group, group=True)
                 self.thumbnail = download_manager.download_image(url, buddyicon=True)
 
                 # if we did not receive an buddyicon at the first try,