[Checkins] SVN: CMF/trunk/CMFCore/DirectoryView.py Those paths should be relative, not absolute

Wichert Akkerman wichert at wiggy.net
Sat Feb 24 09:37:35 EST 2007


Log message for revision 72799:
  Those paths should be relative, not absolute

Changed:
  U   CMF/trunk/CMFCore/DirectoryView.py

-=-
Modified: CMF/trunk/CMFCore/DirectoryView.py
===================================================================
--- CMF/trunk/CMFCore/DirectoryView.py	2007-02-24 11:36:33 UTC (rev 72798)
+++ CMF/trunk/CMFCore/DirectoryView.py	2007-02-24 14:37:34 UTC (rev 72799)
@@ -97,6 +97,8 @@
             parts.append('')
             if subdir:
                 subdir = '/'.join((parts[1], subdir))
+                if subdir.startswith('/'):
+                    subdir=subdir[1:]
             else:
                 subdir = parts[1]
             return ('Products.' + parts[0], subdir)



More information about the Checkins mailing list