[Zodb-checkins] CVS: Zope3/lib/python/Persistence - Module.py:1.20

Jeremy Hylton jeremy@zope.com
Fri, 20 Sep 2002 16:04:02 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv10819

Modified Files:
	Module.py 
Log Message:
Fix _get_parent() to return every but the last component.





=== Zope3/lib/python/Persistence/Module.py 1.19 => 1.20 ===
--- Zope3/lib/python/Persistence/Module.py:1.19	Fri Sep 20 15:52:25 2002
+++ Zope3/lib/python/Persistence/Module.py	Fri Sep 20 16:04:02 2002
@@ -220,7 +220,7 @@
         name = globals.get("__name__")
         if name is None or "." not in name:
             return None
-        i = name.find(".")
+        i = name.rfind(".")
         return name[:i]
 
 class PersistentModuleRegistry(Persistent):