[CMF-checkins] CVS: CMF/CMFCore - utils.py:1.41

Yvo Schubbe schubbe@web.de
Mon, 23 Jun 2003 08:21:43 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv32338/CMFCore

Modified Files:
	utils.py 
Log Message:
Fixed buglet in 'minimalpath()'.

=== CMF/CMFCore/utils.py 1.40 => 1.41 ===
--- CMF/CMFCore/utils.py:1.40	Fri May  9 17:40:23 2003
+++ CMF/CMFCore/utils.py	Mon Jun 23 08:21:42 2003
@@ -665,9 +665,9 @@
     # otherwise, it returns what it was given.
     # In either case, the path is normalized.
     p = normalize(p)
-    index = p.find('Products')
+    index = p.rfind('Products')
     if index == -1:
-        index = p.find('products')
+        index = p.rfind('products')
         if index == -1:
             # couldn't normalise            
             return p