[Zope-CMF] BUG: ZCatalog issue with portal_catalog

Ivo van der Wijk ivo@amaze.nl
Mon, 3 Dec 2001 16:28:53 +0100


Hi all,

I don't know if this has been discussed before - I just ran into this.

If you select the Indexes tab in the portal_catalog, select an index 
(or specifically 'path') and click 'Reindex', you get the following
Zope error:

Error Type: TypeError
Error Value: catalog_object() got an unexpected keyword argument 'idxs'

This problem is caused by the way CatalogTool.py implements the
catalog_object method. The ZCatalog signature is:

	def catalog_object(self, obj, uid=None, idxs=[]):

The CatalogTool.py implementation is:

	def catalog_object(self, object, uid):

It lacks the idxs keyword, as you can see. Adding idxs=[] and passing
idxs to ZCatalog.catalog_object will probably fix this problem.

With regards,

	Ivo

-- 
Drs. I.R. van der Wijk                              -=-
Brouwersgracht 132                      Amaze Internet Services V.O.F.
1013 HA Amsterdam, NL                               -=-
Tel: +31-20-4688336                       Linux/Web/Zope/SQL/MMBase
Fax: +31-20-4688337                           Network Solutions
Web:     http://www.amaze.nl/                    Consultancy
Email:   ivo@amaze.nl                               -=-