[CMF-checkins] CVS: CMF/CMFCore - CatalogTool.py:1.18

Tres Seaver tseaver@zope.com
Wed, 14 Nov 2001 22:56:23 -0500


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv19674/CMFCore

Modified Files:
	CatalogTool.py 
Log Message:


  - Updated CMFCore.CatalogTool to allow new, optional 'idxs'
    argument to 'catalog_object' (tracker #405).

  - Restored dots to 2.4 version of the runner in 'all_cmf_tests.py'.


=== CMF/CMFCore/CatalogTool.py 1.17 => 1.18 ===
     manage_catalogFind = DTMLFile( 'catalogFind', _dtmldir )
 
-    def catalog_object(self, object, uid):
+    def catalog_object(self, object, uid, idxs=[]):
         # Wraps the object with workflow and accessibility
         # information just before cataloging.
         wf = getattr(self, 'portal_workflow', None)
@@ -268,7 +268,7 @@
         else:
             vars = {}
         w = IndexableObjectWrapper(vars, object)
-        ZCatalog.catalog_object(self, w, uid)
+        ZCatalog.catalog_object(self, w, uid, idxs)
 
     security.declarePrivate('indexObject')
     def indexObject(self, object):