Hi everyone!
I'm trying to implement data logging with SQLAlchemy.. That is,
whenever someone updates a persisted entity, generate a new record and
then mark the old one as such.

My problem right now is that if I load an entity from the DBMS, modify
it and then try to save it again, I have to tell SQLA that the entity
needs to be INSERTed, not UPDATEd.. I tried zeroing entity.id and
entity.version, but it still tries an UPDATE.. How do I "trick" SQLA
into thinking it's a new entity?

Many thanks for your time!
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to