Hello,
Is it possible to override the _get_ and _set_ methods in an
InheritableSQLObject subclasa?
I have the following:
class SuperElement(sqlobject.inheritance.InheritableSQLObject):
handle = sqlobject.StringCol(length=64, varchar=False, notNone=True)
name = sqlobject.StringCol(length=64, varchar=False, notNone=True)
class SubElement(SuperElement):
number = sqlobject.StringCol(length=64, varchar=False, notNone=True)
def _get_handle(self):
return (self.number)
def _set_handle(self, value):
self.number = value
So, it seems it's not possible for me to say "when asking for 'handle' in
the SubElement give 'number' instead." Is there something I'm doing wrong
with the _get_ and _set_ methods or is that kind of override not supported
in SQLObject?
Dan
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss