Example #1
0
 def __init__(self, name, parent=None, **kw):
     ImageItem.__init__(self, name, type_='image', **kw)
     MediaItem.__init__(self, name, type_='playlist', **kw)
     self.parent = parent
     self.action = kw['action']
     self._content = None
     return None
Example #2
0
 def __init__(self, name, category, parent=None, **kw):
     ImageItem.__init__(self, name, type_='image', **kw)
     MediaItem.__init__(self, name, type_='playlist', **kw)
     self.category = category
     self.parent = parent
     self._content = None
     return None
Example #3
0
 def __init__(self, name, username, parent=None, **kw):
     ImageItem.__init__(self, name, type_='image', **kw)
     MediaItem.__init__(self, name, type_='dir', **kw)
     self.username = username
     self.parent = parent
     self._content = None
     return None
Example #4
0
 def __init__(self, name, web_path, parent=None, **kw):
     ImageItem.__init__(self, name, type_='image', **kw)
     MediaItem.__init__(self, name, type_='playlist', **kw)
     self.parent = parent
     self.web_path = web_path
     self._content = None
     return None
Example #5
0
 def __init__(self, name, channel, parent=None, **kw):
     ImageItem.__init__(self, name, type_='image', **kw)
     MediaItem.__init__(self, name, type_='playlist', **kw)
     self.channel = channel
     self.parent = parent
     self._content = None
     return None
Example #6
0
 def __init__(self, name, list_fn, parent=None, **kw):
     ImageItem.__init__(self, name, type_='image', **kw)
     MediaItem.__init__(self, name, type_='playlist', **kw)
     self.list_fn = list_fn
     self.parent = parent
     self._content = None
     return None
Example #7
0
 def __init__(self, name, username, parent=None, **kw):
     ImageItem.__init__(self, name, type_='image', **kw)
     MediaItem.__init__(self, name, type_='dir', **kw)
     self.parent = parent
     self._content = None
     self.email = username
     self.password = PicasaConfig().GetPrivatePassword(self.email)
     return None
Example #8
0
 def __init__(self, name, username, gphoto_id, parent=None, **kw):
     ImageItem.__init__(self, name, type_='image', **kw)
     MediaItem.__init__(self, name, type_='playlist', **kw)
     self.username = username
     self.gphoto_id = gphoto_id
     self.parent = parent
     self._content = None
     return None
Example #9
0
 def browse(self, preview=False):
     win = LoadingWindow()
     win.show()
     try:
         self._content = []
         for photo in PicasaGData.GetFeed(
                 '/data/feed/api/user/%s/albumid/%s?kind=photo' %
             (self.username, self.gphoto_id)).entry:
             self._content.append(
                 ImageItem(photo.title.text,
                           thumbnail=photo.media.thumbnail[0].url,
                           uri=photo.content.src,
                           backend='dummy',
                           parent=self,
                           menu=self.menu))
     except:
         PRINT_EXCEPTION()
     win.hide()
     return self._content