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

chaouche yacine yacinechaouche at yahoo.com
Wed Aug 20 09:08:27 EDT 2008




--- On Wed, 8/20/08, Andrew Milton <akm at theinternet.com.au> wrote:

> From: Andrew Milton <akm at theinternet.com.au>
> Subject: Re: [Zope] Need some help to get rid of an InvalidObjectReference exception
> To: "chaouche yacine" <yacinechaouche at yahoo.com>
> Cc: zope at zope.org
> Date: Wednesday, August 20, 2008, 5:27 AM
> +-------[ chaouche yacine ]----------------------
> |
> | Ok here's how I did to finally fix it :
> | 
> | * create a new Transient Object Container (sessionTOC) at
> root
> | * create a new Session Data Manager (sessionDM), with the
> following settings :
> | ** Id : sessionDM
> | ** Transient Object Container Path : /sessionTOC
> | ** Place SESSION in REQUEST object as : ZODBSESSION
> | 
> | Now I can put ZODB objects in ZODBSESSION using something
> like : 
> | 
> | context.REQUEST.ZODBSESSION.set("object",o)
> | 
> | Thanks to all of you for your precious help.
> 
> Your main ZODB will grow everytime you add or remove
> something in
> ZODBSESSION, you're essentially storing the same object
> twice in your
> ZODB.
> 
> -- 
> Andrew Milton
> akm at theinternet.com.au


Correct. I Quit... :( better not to store ZODB objects in the session and try to get some way around.






      


More information about the Zope mailing list