Subclassing (extending) Models

0 views
Skip to first unread message

Rein Petersen

unread,
Jun 27, 2008, 3:26:19 PM6/27/08
to Google App Engine
I have enjoyed success in extending models using inheritance - I love
it!

But I'm encountering the following exception when I try to override a
property (say with a new default value of some sort) by declaring it
with the same name used in the superclass:

class 'google.appengine.ext.db.DuplicatePropertyError'

It is pretty clear what is happening here but I hope that Google App
Engine may, in future, allow the over-riding of properties. Of course,
the type of the over-riding property should be the same as the
corresponding super class property - it is only the defaults and other
various parameters that would, ideally, be subject to overrides.

Just a suggestion ;)

Rein
Reply all
Reply to author
Forward
0 new messages