It is the latest and greatest, v1.2.3.

I can tell you without a doubt that the following code does not return
the last 10 photos uploaded.  It appears to be pulling the oldest
photos I have in my album instead of the newest.  This is the opposite
of what occurs using the feed itself (not using the client library).

photos = gd_client.GetUserFeed(kind='photo', limit='10')
for photo in photos.entry:
  print 'Album: ', photo.albumid.text, ' Recently added photo title:',
photo.title.text

If there's a way you'd like me to document exactly what's happening,
let me know and I'll do it.  The fact that this functionality isn't
working appears to be common knowledge in the forum, with people
citing flickr as currently having the needed functionality.  In the
meantime, I've created a workaround by creating a seperate album to
pull photos from, where I know the latest photos will be kept.

-Ray

On Dec 16, 4:21 pm, Jeff Fisher <api.jfis...@google.com> wrote:
> I spoke with the maintainer of the Python client library. He claims he
> successfully was able to unit test that the library maintains the order of
> entries within a feed when it parses them. What version are you using? The
> latest and greatest?
>
> Cheers,
> -Jeff
>
> On Mon, Dec 15, 2008 at 11:57 AM, ray <rayjohnterr...@gmail.com> wrote:
>
> > Yes.  The photos appear to be coming back in the correct order when
> > using the feed itself.  Only when I'm using the python client lib are
> > things coming back in the incorrect order as far as I can tell.
>
> > On Dec 15, 1:09 pm, Jeff Fisher <api.jfis...@google.com> wrote:
> > > Oh, the problem is in the API itself, not in the local client. Are you
> > > seeing the photos in the correct order when you pull the raw feed?
>
> > > Cheers,
> > > -Jeff
>
> > > On Sun, Dec 14, 2008 at 11:47 AM, ray <rayjohnterr...@gmail.com> wrote:
>
> > > > Do you know where the 'orderby uploaded' code is broken?  I'm looking
> > > > at the source, and I can't find where the error is occuring.  The feed
> > > > URI looks to be being built correctly, but I lose what's happening
> > > > when it gets to the following:
>
> > > >   if converter:
> > > >      return converter(result_body)
>
> > > > which i think actually becomes:
>
> > > >   AnyFeedFromString(result_body)
>
> > > > up until the point where the conversion occurs, the URI that is being
> > > > built returns the correctly ordered results.  i suppose i could work
> > > > around the feed conversion, if thats the issue, implementing something
> > > > myself to get the info i need from the feed (although its going to be
> > > > pretty kludgy).
>
> > > > -Ray
>
> > > > On Dec 12, 2:13 pm, Jeff Fisher <api.jfis...@google.com> wrote:
> > > > > Oh don't feel sorry at all, it's good to hear some feedback. We don't
> > get
> > > > a
> > > > > lot of it with the Python client / docs, so don't be shy to say what
> > is
> > > > > confusing or flat out wrong. I can always figure out who wrote it
> > > > initially
> > > > > and go chide them. ;)
>
> > > > > The "orderby uploaded" thing has been a rather glaring problem for
> > some
> > > > time
> > > > > now, so I do hope we can fix it in the near future.
>
> > > > > Cheers,
> > > > > -Jeff
>
> > > > > On Fri, Dec 12, 2008 at 11:35 AM, ray <rayjohnterr...@gmail.com>
> > wrote:
>
> > > > > > I'm Sorry to bug you on it (everyone hates documentation), but I
> > > > > > figured it'd be worth mentioning.  I'm new to the python interface,
> > so
> > > > > > I'm stumbling on each little issue, and other might as well.
> > > > > > -Ray
>
> > > > > > On Dec 12, 1:16 pm, Jeff Fisher <api.jfis...@google.com> wrote:
> > > > > > > For shame, documentation.
>
> > > > > > > So it turns out that it *used* to be the case that coincidentally
> > > > photos
> > > > > > > were always stored (more or less) in uploaded time order by
> > default.
> > > > Some
> > > > > > > backend changes made that no longer the case.
>
> > > > > > > I'd say we should update all the documentation... but we really
> > > > should
> > > > > > just
> > > > > > > resolve that issue.
>
> > > > > > > Cheers,
> > > > > > > -Jeff
>
> > > > > > > On Fri, Dec 12, 2008 at 11:04 AM, ray <rayjohnterr...@gmail.com>
> > > > wrote:
>
> > > > > > > > The documentation specifies that the 'photos =
> > > > gd_client.GetUserFeed
> > > > > > > > (kind='photo', limit='10')' retrieves the last 10 photos
> > uploaded
> > > > by
> > > > > > > > the username specified.  That's why I was thinking it would
> > work
> > > > that
> > > > > > > > way.
> > > > > > > > -Ray
>
> > > > > > > > On Dec 12, 12:58 pm, "Jeff Fisher (Google)" <
> > > > api.jfis...@google.com>
> > > > > > > > wrote:
> > > > > > > > > I think this is just because there needs to be a way to
> > specify a
> > > > > > sort
> > > > > > > > > order on API requests:
>
> > > > > > > > >http://code.google.com/p/gdata-issues/issues/detail?id=280
>
> > > > > > > > > You can star the issue for updates on it.
>
> > > > > > > > > Cheers,
> > > > > > > > > -Jeff
>
> > > > > > > > > On Dec 12, 10:43 am, ray <rayjohnterr...@gmail.com> wrote:
>
> > > > > > > > > > I'm trying to use the Python API to get a list of recent
> > > > photos,
> > > > > > using
> > > > > > > > > > the following:
>
> > > > > > > > > > photos = gd_client.GetUserFeed(kind='photo', limit='10')
>
> > > > > > > > > > The photos that are returned in the feed are not the latest
> > > > photos.
> > > > > > > > > > I've verified that when accessing the feed manually
> > > > (usinghttp://
> > > > > > > > picasaweb.google.com/data/feed/api/user/<my username>/?
> > > > > > > > > > kind=photo), the latest photos are indeed returned.
>
> > > > > > > > > > Any idea if its something I'm doing, or an existing issue?
>
> > > > > > > > > > Thanks,
--~--~---------~--~----~------------~-------~--~----~
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 Google-Picasa-Data-API@googlegroups.com
To unsubscribe from this group, send email to 
google-picasa-data-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to