Assuming this is SqlAlchemy, your only option is to call flush().

`flush()` simply tells the session to talk to the database.

if you don't call `flush()` or `commit()`, SqlAlchemy doesn't talk to the 
database, and has no way of obtaining an id.

i think requiring an explicit command to talk to the database is a very 
elegant solution -- it minimizes a lot of database connectivity.




-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to