Exemplo n.º 1
0
 def __refresh__(self, b):
     """
     @summary: Handle for refresh button event.
     @param b: Button associated with the event. 
     """    
     self.__cbModel__.clear()
     albums = self.__gdata__.getPhotoAlbums()
     if (albums != None):
         for album in albums.entry:
             __log__.debug("Album detected: %s" % album.title.text)
             UIUtils.addIterListView(self.__cbModel__, (album.title.text, album.gphoto_id.text, albums.entry.index(album)), doGObject=False)
     else:
         __log__.info("It could not retrieve albums.")
Exemplo n.º 2
0
 def __refresh__(self, b):
     """
     @summary: Handle for refresh button event.
     @param b: Button associated with the event. 
     """
     self.__cbModel__.clear()
     albums = self.__facebook__.getPhotoAlbums()
     if albums != None:
         for album in albums:
             __log__.debug("Album detected: %s" % album["name"])
             UIUtils.addIterListView(
                 self.__cbModel__, (album["name"], album["aid"], albums.index(album)), doGObject=False
             )
     else:
         __log__.info("No se han recuperado albums.")