[Zope-CVS] CVS: Products/DBTab - MountedObject.py:1.9

Shane Hathaway shane@zope.com
Mon, 16 Jun 2003 13:56:47 -0400


Update of /cvs-repository/Products/DBTab
In directory cvs.zope.org:/tmp/cvs-serv23607

Modified Files:
	MountedObject.py 
Log Message:
Added a test of getMountPoint().


=== Products/DBTab/MountedObject.py 1.8 => 1.9 ===
--- Products/DBTab/MountedObject.py:1.8	Fri Jun 13 16:51:43 2003
+++ Products/DBTab/MountedObject.py	Mon Jun 16 13:56:16 2003
@@ -211,10 +211,10 @@
     mps = getattr(container, '_mount_points', None)
     if mps:
         mp = mps.get(ob.getId())
-        if mp is not None and mp._p_jar is ob._p_jar:
+        if mp is not None and (mp._p_jar is ob._p_jar or ob._p_jar is None):
             # Since the mount point and the mounted object are from
             # the same connection, the mount point must have been
-            # replaced and the object is not mounted.
+            # replaced.  The object is not mounted after all.
             return None
         # else the object is mounted.
         return mp