From: Oleg B. <ph...@ph...> - 2008-02-07 17:58:51
|
On Thu, Feb 07, 2008 at 11:36:15AM -0600, Christopher Singley wrote: > class ObjectState(SQLObject): > parent = ForeignKey('Object') > date = DateCol() > attribute = StringCol() > > class Object(SQLObject): > states = MultipleJoin('ObjectState', joinColumn='parent_id') So an Object instance has a lot of states, well... > 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 What do you mean by "changing dynamically"? > with the entire history > persisted. http://sqlobject.org/Versioning.html Is it what you want? Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |