[Zope-CMF] BUG: ZCatalog issue with portal_catalog
Ivo van der Wijk
ivo@amaze.nl
Mon, 3 Dec 2001 19:31:33 +0100
On Mon, Dec 03, 2001 at 01:25:39PM -0500, Andrew Sawyers wrote:
> 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
It's standard Zope 2.4.3 / CMF 1.1 - I understand that the problem was already
fixed in the CVS zope.
Ivo
> 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.
>
--
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 -=-