> Thank you for your response.
> I will try to describe my problem more precisely.
> In model.py file there are the following classes:
>
> class Base((InheritableSQLObject):
> created = DateTimeCol(default=DateTimeCol.now())
>
> class BaseSample(Base):
> name = StringCol(length=40, alternateID=True)
>
> class BaseData(Base):
> sample_id = ForeignKey("BaseSample")
Your whole design is flawed because of improper use of InheritableSQLObject.
It is not meant for mere column adding for arbitrary objects. You should be
able to do that by simply subclassing from SQLObject.
InheritableSQLObject is meant for class hierarchies like
Car->Mercedes
->BMW
not for just adding some common fields.
Redesign it that way, and things should work as you try to make them work.
Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---