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 ------------------------------------------------------------------------- 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 sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss