I'm trying to create a hierchy of kinds, the obvious reason of which
is that kinds can share model fields. However, for
ReferenceProperties, collection_name is fixed to when the model field
is declared in the model class. If this is declared in the parent
class, then all the children will have this collection name, which is
likely inaccurate:

class Parent(PolyModel):
   house = db.ReferenceProperty(House, collection_name='parents')

class Child(Parent):
   pass

House won't have a back reference to children in particular. And since
for PolyModels, fields cannot be overriden by children classes, Child
can't have its own house field.

This problem could be solved if collection_name was callable, so that
the children class could return its own collection name. Is there
plans for this?
--~--~---------~--~----~------------~-------~--~----~
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