[CMF-checkins] CVS: CMF/CMFCore - utils.py:1.39.2.2
Yvo Schubbe
schubbe@web.de
Mon, 23 Jun 2003 08:21:16 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv32294/CMFCore
Modified Files:
Tag: CMF-1_4-branch
utils.py
Log Message:
Fixed buglet in 'minimalpath()'.
=== CMF/CMFCore/utils.py 1.39.2.1 => 1.39.2.2 ===
--- CMF/CMFCore/utils.py:1.39.2.1 Fri May 9 17:31:38 2003
+++ CMF/CMFCore/utils.py Mon Jun 23 08:21:15 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