you can't call flush() within before_insert/before_update/ etc. as you are already inside the flush process. I think at this point it should know to raise an exception for that action.
On Aug 6, 2014, at 4:01 PM, Jonathan Vanasco <[email protected]> wrote: > try calling `session.flush()` > > that will "emit sql" and pull insert ids; syncing the SqlAlchemy Session to > the database. > > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" 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/sqlalchemy. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" 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/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
