Hello all,
I have the following problem.
While I'm working in my session, someone change my instance identity.
I would like to avoid this.
Is there a way to understand if was there any change before flushing?
This is the message:
File "/usr/lib/python2.4/site-packages/sqlalchemy/orm/mapper.py", line 1078, in
save_obj
raise exceptions.FlushError("Can't change the identity of instance %s in
session (existing identity: %s; new identity: %s)" %
(mapperutil.instance_str(obj), obj._instance_key, instance_key))
FlushError: Can't change the identity of instance spe...@0x5cc4590 in session
(existing identity: (<class 'sicer.BASE.model.tabelleCodifica.specie.Specie'>,
(u'0141',), None);
new identity: (<class 'sicer.BASE.model.tabelleCodifica.specie.Specie'>,
(u'08',), None))
thank you for any help
j
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---