[Zope] Need some help to get rid of an InvalidObjectReference exception

Andrew Milton akm at theinternet.com.au
Wed Aug 20 13:35:25 EDT 2008


+-------[ chaouche yacine ]----------------------
| 
|
| Not exactly. I am instantiating non persistent objects that do have a reference to persistence objects in the form of an attribute, and then trying to cache those non persistent objects.
| 
| Do the fact that these non persistent objects store a reference to persistent ones turn them into persistent ? I am curious to know.
| 
| Anyway, I tried the volatile attribute thing (http://wiki.zope.org/ZODB/VolatileAttributes) and first tests look fine.

You understand that _v_ attributes are only available in the thread they
were created, and will disappear when the object leaves the object
cache.

If you manage to get a 2nd thread there will be nothing in the _v_
attribute, or wait 10 or so mins between requests...

-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list