[CMF-checkins] CVS: Products/CMFCore/tests/base - testcase.py:1.10.10.3

Jens Vagelpohl jens at dataflake.org
Wed Apr 6 05:54:10 EDT 2005


Update of /cvs-repository/Products/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv24011/CMFCore/tests/base

Modified Files:
      Tag: CMF-1_5-branch
	testcase.py 
Log Message:
- CMFCore.DirectoryView: Made list of file names to ignore configurable.
  The previously hardcoded list of files to ignore when creating their
  ZODB representations can now be configured by passing a sequence of
  names to registerDirectory, which will be ignored in addition to the
  standard list of ignored names (http://www.zope.org/Collectors/CMF/319).


=== Products/CMFCore/tests/base/testcase.py 1.10.10.2 => 1.10.10.3 ===
--- Products/CMFCore/tests/base/testcase.py:1.10.10.2	Tue Apr  5 05:25:19 2005
+++ Products/CMFCore/tests/base/testcase.py	Wed Apr  6 05:53:39 2005
@@ -92,10 +92,12 @@
     _skinname = 'fake_skins'
     _layername = 'fake_skin'
 
-    def _registerDirectory(self,object=None):
+    def _registerDirectory(self, object=None, ignore=None):
         from Products.CMFCore.DirectoryView import registerDirectory
         from Products.CMFCore.DirectoryView import addDirectoryViews
-        registerDirectory(self._skinname, self.tempname)
+        if ignore is None:
+            from Products.CMFCore.DirectoryView import ignore
+        registerDirectory(self._skinname, self.tempname, ignore=ignore)
         if object is not None:
             ob = self.ob = DummyFolder()
             addDirectoryViews(ob, self._skinname, self.tempname)



More information about the CMF-checkins mailing list