Hallo everyone,

I am new to the Google app engine. So far I like it a lot.
My question:
I want to implement a hierarchical datamodel where there is a common
superclass A, 2 subclasses B and C and one class D that inherits from
B as well as from C.

So:
A->[]
B->[A]
C->[A]
D->[B,C]

in normal python, this is not a problem.
class D(B,C)
When I do the same with A subclassing PolyModel, I get:
<code>
<class 'google.appengine.ext.db.DuplicatePropertyError'>: Duplicate
properties in base class C already defined: ['_class']
      args = ("Duplicate properties in base class C already defined:
['_class']",)
      message = "Duplicate properties in base class C already defined:
['_class']"
</code>
Which I interpret that I can only have one Model class as a
superclass.

Is it possible to do what I want in the google app engine?

thanks in advance!

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