[ZODB-Dev] InvalidObjectReference and mount

Shane Hathaway shane@zope.com
Tue, 07 Jan 2003 15:09:25 -0500


Jeremy Hylton wrote:
>>>>>>"SH" == Shane Hathaway <shane@zope.com> writes:
>>>>>
> 
>   SH> So a mounted object is only mounted in the sense that when Zope
>   SH> traverses to a special "MountPoint" object, it actually finds a
>   SH> different object from a different database.  ZODB is totally
>   SH> unaware.
> 
> Getting back to this late: If an object in the main database has a
> reference to an object inside the mounted database, it will fail with
> the InvalidObjectReference, right?  That's really what I was trying to
> understand.  Mounting allows traversal from one object to another, but
> ZODB does prevent the creation of references across the mount.

That is correct.  Direct inter-database references are not currently 
possible.

Shane