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

Jens Vagelpohl jens at dataflake.org
Wed Apr 6 05:55:15 EDT 2005


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

Modified Files:
	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.13 => 1.14 ===
--- Products/CMFCore/tests/base/testcase.py:1.13	Tue Apr  5 05:26:54 2005
+++ Products/CMFCore/tests/base/testcase.py	Wed Apr  6 05:54:45 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