Hello,

I currently use Django framework and Gdata API. Now to fetch a list of
photos for a particular album I have to use a view like this:

def album(request, album_identifier):
    client = gdata.photos.service.PhotosService()
    images = client.GetFeed('/data/feed/api/user/%s/albumid/%s?
kind=photo' % (GMAIL_USERNAME, str(album_identifier))).entry
    return render_to_response('picasa_album.html', {'images':images,})

In the code above album_identifier is actually an id of an album kept
inside <gphoto:id> tag passed via URL from another page.

The question: is there any way to fetch the photos using a title name
property of an album? Or is it possible to get all the properties of a
particular album if its title is known? Currently I use iteration and
comparison in order to get album's id if I know its name. E.g.:

for album in albums:
    if album.name.text == album_name:
        album_id = album.gphoto_id.text
        break

But this technique is crappy...

I want to access fetch the images via album's title property because
this way I would be able to use more nice looking URLs on the site.
Not a freaky combination of digits but a readable string title
instead. Sth. like:

httP://example.com/photos/AlbumTitle


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to