[CMF-checkins] SVN: CMF/trunk/CMFCore/tests/base/testcase.py fixed the fix; hope this works now on all platforms

Yvo Schubbe y.2005- at wcm-solutions.de
Tue Jul 19 07:49:39 EDT 2005


Log message for revision 37331:
  fixed the fix; hope this works now on all platforms

Changed:
  U   CMF/trunk/CMFCore/tests/base/testcase.py

-=-
Modified: CMF/trunk/CMFCore/tests/base/testcase.py
===================================================================
--- CMF/trunk/CMFCore/tests/base/testcase.py	2005-07-19 11:47:58 UTC (rev 37330)
+++ CMF/trunk/CMFCore/tests/base/testcase.py	2005-07-19 11:49:08 UTC (rev 37331)
@@ -7,7 +7,7 @@
 from os import chmod, curdir, mkdir, remove, stat, walk
 from os.path import join, abspath, dirname
 from shutil import copytree, rmtree
-from stat import S_IWRITE
+from stat import S_IREAD, S_IWRITE
 from tempfile import mktemp
 
 from AccessControl.SecurityManagement import newSecurityManager
@@ -217,8 +217,8 @@
                       self._skinname))
         # make sure we have a writable copy
         for root, dirs, files in walk(self.tempname):
-            for name in dirs + files:
-                chmod(join(root, name), S_IWRITE)
+            for name in files:
+                chmod(join(root, name), S_IREAD+S_IWRITE)
         # store the skin path name
         self.skin_path_name = join(self.tempname,self._skinname,self._layername)
 



More information about the CMF-checkins mailing list