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/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss