[sqlalchemy] when is object.id initialized

2011-04-03 Thread farcat
Hi all, I use a kind of dynamic reference from parent_table to other tables. For that parent_table uses columns table_name and a record_id. This makes it possible to have a reference from parent_table to any record in any table in the database. However, say that i want to reference a record of

Re: [sqlalchemy] when is object.id initialized

2011-04-03 Thread Michael Bayer
Integer primary key identifiers are generated by the database itself using a variety of techniques which are all database-dependent. This process occurs when the session flushes. If you read the object relational tutorial starting at