I'm experiencing some unexpected behaviour.

In my code Category is derived from BaseModel and has a reference to
another entity (creator).  If I initialize categories with a parent I
can trigger the error.

(from a django shell session)

a = Category('A', creator=my_guy)
a.save()
assert(Category.get_by_id(a.key().id()))   # OK, no parent

b = Category(parent=my_guy, 'B', creator=my_guy)
b.save()
assert(b.key().id())   # OK, key exists
assert(Category.get(b.key()))   # OK as well
assert(Category.get_by_id(b.key().id()))   # raises AssertionError

So even though the key appears to be valid and have a numeric
identifier it cannot be used with get_by_id without throwing.  Have I
missed something here?

I am running latest appengine on Windows with google-app-engine-django
R86 and django 1.0.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to