[Zope] storing persisten object in python dictionaries
Marco Bizzarri
marco.bizzarri at gmail.com
Thu Oct 26 08:51:56 EDT 2006
Storing persistent object in object outside of ZODB can incur in the
problem of passing object(s) between threads, and, therefore, passing
one object which is related to a connection on the ZODB to another
context with a different connection.
Also, AFAIK, keep in mind _v_ attributes are not involved in
transaction machinery of Zope. This means that if you have an error
inside you transaction after you modified the _v_ cache, you will have
the cache modified even tough the transaction has been aborted.
Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
More information about the Zope
mailing list