From: Christopher S. <csi...@gm...> - 2008-02-07 17:36:20
|
On Thursday 07 February 2008 11:21:46 Oleg Broytmann wrote: > No. Maybe my design is a bad solution for the problem. I want to define a SQLObject that is static, so that its id can be used as a foreign key, but I want to allow its attributes to change dynamically, with the entire history persisted. That's why I wrote this: ======= class ObjectState(SQLObject): parent = ForeignKey('Object') date = DateCol() attribute = StringCol() class Object(SQLObject): states = MultipleJoin('ObjectState', joinColumn='parent_id') ======= Surely this must be a common goal; is there a better approach? TIA, cs |