2011/5/30 Cornelius Kölbel <cornelius.koel...@lsexperts.de>

> OK,
>
> after some more reading and thinking, I think i managed it this way:
>
>        self.session.add(at)
>        self.session.flush()
>         # At this point "at" contains the primary key id
>        at.signature = self._sign( at )
>        self.session.merge(at)
>

This merge should not be needed, In this case with the session configured as
you have it the update is flushed to the database prior to the commit. Try a
little test with echo=True on the engine and you will see it.


>        self.session.commit()
>
> Kind regards
> Cornelius
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to