[Zope-CMF] It might be bug, isn't it?

Takakazu Tamaki kaz@oceanbreeze.co.jp
Fri, 09 Nov 2001 00:16:18 +0900


Hi there,

In portal_catalog/Indexes tab, the Reindex button dosen't work for me.

I think CMFCore/CatalogTool.py has a small bug when overriding a
catalog_object in ZCatalog base class.

Should I need to tell to ZC?

Zope-2.4.2 + CVS's CMF

--- CatalogTool.py.orig Tue Oct 30 14:11:17 2001
+++ CatalogTool.py      Thu Nov  8 23:34:43 2001
@@ -259,7 +259,7 @@

     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):



---
kaz