[CMF-checkins] CVS: CMF/CMFCore - DirectoryView.py:1.13

Ken Manheimer klm@zope.com
Mon, 26 Nov 2001 16:57:18 -0500


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

Modified Files:
	DirectoryView.py 
Log Message:
Enable use of Data.fs from unix on windows: when normalizing paths, do
more to normalize for the platform.  (We'll need to add a bit more to
work in the other direction.)

.getDirectoryInfo(): Lookup info for the (partially)
platform-normalized path.


=== CMF/CMFCore/DirectoryView.py 1.12 => 1.13 ===
     def getDirectoryInfo(self, filepath):
         # Can return None.
-        return self._directories.get(filepath, None)
+        return self._directories.get(os.path.normpath(filepath), None)
 
     def listDirectories(self):
         dirs = self._directories.keys()