def __init__(self, url, name, pict_count, album_id, thumb, user): UrlLeaf.__init__(self, url, name) self.album_id = album_id self.thumb = thumb photos_info = ngettext("one photo", "%(num)s photos", int(pict_count)) % {"num": pict_count} self.description = ': '.join((user, photos_info))
def __init__(self, obj, title, desc): UrlLeaf.__init__(self, obj, title) self.description = desc
def __init__(self, url, name, thumb=None, albums=None): UrlLeaf.__init__(self, url, name) # list of user albums [PicasaAlbum] self.update_albums(albums) self.thumb = thumb self.my_albums = False
def __init__(self, obj, title, desc): UrlLeaf.__init__(self, obj, title) self.description = desc