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/

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/1461224218.20052.19.camel%40hipro.co.in.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to