Hi David,
  Not sure about your actual question, but that's not the best way to build
a string. Use str.join instead:

    parts = [item.name() for item in items]
    names = " ".join(parts)

Robert


On Jul 21, 2011 10:35 PM, "David Cheney" <[email protected]> wrote:
> Apologies if this is a FAQ.. not found an answer via search..
>
> From within GAE, using python, I want to get a list of objects in a
> GSD bucket:
>
> uri = boto.storage_uri('mybucket','gs')
> names = ''
> for obj in uri.get_bucket():
> names = names + " " + obj.name
>
> This works handily but returns all items.. when what I care about is a
> subset.
>
> My objective is to get a list of images on a certain path as I would
> get with a "/a/b/*.jpg"
>
> I can obviously parse the list myself, but was hoping I'd missed magic
> somewhere in the libs.
>
> Thanks,
> DJC
>
> --
> 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.
>

-- 
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