[ZODB-Dev] Attempt to store an object from a foreign database
connection
Chris McDonough
chrism@zope.com
29 May 2002 09:39:36 -0400
One suspect is the sessioning machinery, which "out of the box" uses a
different database to store session info. Are you using sessions?
For an explanation of the error, see
http://lists.zope.org/pipermail/zope-coders/2002-February/000804.html .
- C
On Wed, 2002-05-29 at 09:09, Toby Dickenson wrote:
> On Wednesday 29 May 2002 2:02 pm, Gennady Kovalev wrote:
> > Hello.
> >
> > Can you tell me where is the error? I think it is at ZODB.
> >
> > Error Type: InvalidObjectReference
> > Error Value: Attempt to store an object from a foreign database
> > connection
>
> There is no obvious cause of this problem in the code you posted.
>
> This error means that a persistent object references another persistent
> object, but the two were not loaded from the same ZODB connection.
>
> This might happen if you were storing a persistent object in a python global
> variable, then adding a reference to it to a different object, in a different
> transaction. Does that help?
>
>
>
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list - ZODB-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zodb-dev