woeful hack, but maybe something like..

def to_path(key):
    output = []
    while key:
        output.append(key.name() if key.name() else key.id())
        output.append(key.kind())
        key = key.parent()

    return tuple(reversed(output))

e1_path = to_path(e1.key())
e2_path = to_path(e2.key())
same_group = e1_path[:-2] and e1_path[:-2] == e2_path[:-2]



2009/3/17 chadwackerman <[email protected]>:
>
> I want to verify programmatically that "thing" and "stuff" belong to
> the same entity group.
>
> Anyone know the mojo?
>
> >
>



-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

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