use a feed to get the picasa data.  I also capture the geopoint and
title if it is available.

def getpics(request):
  """Takes a feed from a Picasa album and shows all the pics."""
  user = users.get_current_user()
  if user is None:
    return http.HttpResponseForbidden('You must be signed in to add or
edit a route')
  gd_client = gdata.photos.service.PhotosService()
  handle = request.POST['handlename']
  album_name=request.POST['albumname']
  picset = []
  feed = gd_client.GetFeed('/data/feed/api/user/%s/album/%s?
kind=photo' % (handle, album_name))
  for entry in feed.entry:
    if entry.geo.Point:
      pos = entry.geo.Point.pos.text
    else:
      pos = '0 0'
    picsrc = entry.content.src
    description = entry.summary.text
    picLink = entry.link[1].href
    picset.append( { 'picsrc':picsrc, 'pos':pos,
'description':description, 'getPic':picLink })
  return respond(request, user, 'picpics', {'feed': picset} )

This will send a list called feed of all the pictures in that
particular album.  I can then display each one in html, with a
checkbox so they can select their choice(s).  Then it comes back to
the server to build a JSON for saving in the datastore.



On Oct 2, 10:57 am, Justin Van Winkle <[EMAIL PROTECTED]>
wrote:
> I would like to allow users to put images in to forum posts, but host
> the images in their picasa accounts.  Is this possible currently, or
> would they have to paste a picasa url just like anywhere else they
> might use picasa to host a picture?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to