Thanks Alkis. Forgot I could manually assign key names to entities.
On Apr 4, 2:27 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
<[email protected]> wrote:
> I think the only way is to scan (using the __key property) all the entities
> of the Knights model and update a set of the strings.
> Another way to do it, is to have a another entity:
>
> KnightColor:
> pass
>
> The keyname for each "empty" entity is the color. For each Knight you put in
> the datastore, check if the colors are in the datastore or not, if not add
> the missing ones. Then you can scan this table and get the list of all
> colors. I am not sure if it matters but it is also going to be sorted by
> color as well.
>
>
>
> On Sat, Apr 4, 2009 at 3:01 AM, Andrew Fong <[email protected]> wrote:
>
> > Hi all,
>
> > Given a model with a StringListProperty, is there a way to query for
> > all strings across all string list properties for this kind?
>
> > For example, if I have Knight(colors=['blue','yellow']) and Knight
> > (colors=['black']), can I do Knight.some_function('colors') # =>
> > ['blue','yellow','black']?
>
> > I was going to implement this myself with a separate datastore table,
> > but it occurred to me that depending on how ListProperty is indexed,
> > there's probably some table with I data I want already in the system.
> > Is there any way to query that table?
>
> > -- Andrew
>
> --
>
> Alkis
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---