[CMF-checkins] CVS: CMF/CMFCore - DirectoryView.py:1.27.4.3
Chris Withers
chrisw@nipltd.com
Mon, 19 Aug 2002 10:12:46 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv22398/CMFCore
Modified Files:
Tag: chrisw-dirview-branch
DirectoryView.py
Log Message:
Tests now pass on Debian as well. It appears mtimes of folders on unix don't change when files are added to or deleted from them :-(
=== CMF/CMFCore/DirectoryView.py 1.27.4.2 => 1.27.4.3 ===
--- CMF/CMFCore/DirectoryView.py:1.27.4.2 Mon Aug 19 08:03:15 2002
+++ CMF/CMFCore/DirectoryView.py Mon Aug 19 10:12:46 2002
@@ -47,7 +47,6 @@
in listdir(path)
if name not in ignore ]
-# This walker is only used on the Win32 version of _changed
def _walker (listdir, dirname, names):
names = [ (name, stat(path.join(dirname,name))[8])
for name
@@ -150,7 +149,7 @@
prm[permission]=(acquire,roles)
return prm
- if Globals.DevelopmentMode and os.name=='nt':
+ if Globals.DevelopmentMode:
def _changed(self):
mtime=0
@@ -176,16 +175,6 @@
return 1
- return 0
-
- elif Globals.DevelopmentMode:
-
- def _changed(self):
- try: mtime = stat(expandpath(self.filepath))[8]
- except: mtime = 0
- if mtime != self._v_last_read:
- self._v_last_read = mtime
- return 1
return 0
else: