How to maintain "referential integrity" in a ZODB. Simply put: When an
object-A is removed from a container, the references to object-A, in
other objects should go invalid.
I tried holding a persistent.WeakRef whenever a reference was required.
However, the WeakRef seems to go invalid only after a GC on the db
(correct me if I am wrong).
The other approach seems to be to use IObjectWillBeRemovedEvent at the
site of the referencing object, to act accordingly.
How do other people deal with this?
--
Joe Steeve
HiPro IT Solutions Private Limited
http://hipro.co.in/