[Zope-CMF] RE: ZEO-strangeness.

Tom Bech tom.bech@adcore.no
Tue, 24 Jul 2001 17:55:11 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C11459.052E2680
Content-Type: text/plain


*sigh*

And the patch...
Sorry.

Tom
  


------_=_NextPart_000_01C11459.052E2680
Content-Type: application/octet-stream;
	name="DirectoryView.py.diff"
Content-Disposition: attachment;
	filename="DirectoryView.py.diff"

--- DirectoryView.py.old	Tue Jul 24 14:21:00 2001
+++ DirectoryView.py	Tue Jul 24 15:46:42 2001
@@ -91,7 +91,7 @@
 import os
 from os import path, listdir, stat
 from Acquisition import aq_inner, aq_parent, aq_base
-from string import split, rfind, strip, join
+from string import split, rfind, strip, join, replace
 from App.Common import package_home
 from OFS.ObjectManager import bad_id
 from OFS.Folder import Folder
@@ -292,7 +292,12 @@
 
     def getDirectoryInfo(self, filepath):
         # Can return None.
-        return self._directories.get(filepath, None)
+        if os.name == "posix":
+          fp = replace(filepath,"\\","/")
+        else:
+          fp = path.normpath(filepath)
+
+        return self._directories.get(fp, None)
 
     def listDirectories(self):
         dirs = self._directories.keys()

------_=_NextPart_000_01C11459.052E2680--