[Zope-CMF] BUG: ZCatalog issue with portal_catalog

Andrew Sawyers andrew@zope.com
Mon, 3 Dec 2001 13:25:39 -0500


I can't duplicate this on my running Zope Instance; can you provide more
information, i.e. version of Zope, CMF, etc  I tried reindexing on path and
a custom added index I have in this particular CMF Instance.
Thanks,
Andrew

-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
Of Ivo van der Wijk
Sent: Monday, December 03, 2001 10:29 AM
To: zope-cmf@zope.org
Subject: [Zope-CMF] BUG: ZCatalog issue with portal_catalog


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                               -=-

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests