[Zope] Catalog addIndex now requires the index type to be resolved prior to adding; create the proper index in the caller.

Andreas Jung Andreas Jung" <andreas@zope.com
Thu, 30 Aug 2001 09:12:16 -0400


The API of the Catalog to add indexes has changed. Instead of letting
the Catalog create the index you must create the index on the application
level and pass the index object to the addIndex() method.

Andreas
----- Original Message -----
From: "Norman Khine" <khine@bmpublications.co.uk>
To: "Zope Mailing List" <zope@zope.org>
Sent: Donnerstag, 30. August 2001 09:12
Subject: [Zope] Catalog addIndex now requires the index type to be resolved
prior to adding; create the proper index in the caller.


> I am getting this error message
>
> Error Type: TypeError
> Error Value: Catalog addIndex now requires the index type to be resolved
> prior to adding; create the proper index in the caller.
>
> Traceback (innermost last):
>   File
> /usr/home/khine/usr/local/zope/2.4.1b1/lib/python/ZPublisher/Publish.py,
> line 223, in publish_module
>   File
> /usr/home/khine/usr/local/zope/2.4.1b1/lib/python/ZPublisher/Publish.py,
> line 187, in publish
>   File /usr/home/khine/usr/local/zope/2.4.1b1/lib/python/Zope/__init__.py,
> line 226, in zpublisher_exception_hook
>   File
> /usr/home/khine/usr/local/zope/2.4.1b1/lib/python/ZPublisher/Publish.py,
> line 171, in publish
>   File
> /usr/home/khine/usr/local/zope/2.4.1b1/lib/python/ZPublisher/mapply.py,
line
> 160, in mapply
>     (Object: manage_addEtailer)
>   File
> /usr/home/khine/usr/local/zope/2.4.1b1/lib/python/ZPublisher/Publish.py,
> line 112, in call_object
>     (Object: manage_addEtailer)
>   File
>
/usr/home/khine/usr/local/zope/2.4.1b1/lib/python/Products/Etailer/Etailer.p
> y, line 66, in manage_addEtailer
>   File
>
/usr/home/khine/usr/local/zope/2.4.1b1/lib/python/Products/ZCatalog/Catalog.
> py, line 348, in addIndex
> TypeError: (see above)
>
> My setup is
>
> Zope Version  (Zope 2.4.1b1 (source release, python 2.1, linux2), python
> 2.1.1, freebsd4)
> Python Version  2.1.1 (#1, Aug 30 2001, 11:21:16) [GCC 2.95.2 19991024
> (release)]
> System Platform  freebsd4
>
> Any ideas will be much appreciated.
>
> Thanks
>
> Norman
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )