[Zope-dev] ZCatalog bug?

Tres Seaver tseaver@digicool.com
Sun, 08 Apr 2001 20:29:39 -0400


Adam Chlipala <chilip@ptd.net> wrote:

> I have just installed Zope 2.3.1 and the latest CMF.  When trying to
> publish some CMF resource after submitting a form to edit the site
> config, I get a TypeError: expected integer key.  The stack traceback is
> included below.  A more experienced user has said that this looks like
> it could be because of a bug in ZCatalog.  I'd like to stress that this
> is literally the first thing I'm doing with Zope, so there's not much to
> do to reproduce the setup. :-)  Does anyone have any guesses about why
> this is happening?  Thanks.
> 
> Traceback (innermost last):
>   File
> /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/Publish.py,
> line 223, in publish_module
>   File
> /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/Publish.py,
> line 187, in publish
>   File /usr/local/stow/zope-2.3.1/lib/zope/lib/python/Zope/__init__.py,
> line 221, in zpublisher_exception_hook
>     (Object: Traversable)
>   File
> /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/Publish.py,
> line 171, in publish
>   File
> /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/mapply.py,
> line 160, in mapply
>     (Object: reconfig)
>   File
> /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/Publish.py,
> line 112, in call_object
>     (Object: reconfig)
>   File /var/lib/zope/Products/CMFCore/FSDTMLMethod.py, line 218, in
> __call__
>     (Object: reconfig)
>   File
> /usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_String.py,
> line 538, in __call__
>     (Object: reconfig)
>   File
> /usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_Return.py,
> line 106, in render
>     (Object: reconfig_form(_.None, _, portal_status_message='Settings
> changed'))
>   File
> /usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_Util.py,
> line 334, in eval
>     (Object: reconfig_form(_.None, _, portal_status_message='Settings
> changed'))
>     (Info: _)
>   File <string>, line 0, in ?
>   File /var/lib/zope/Products/CMFCore/FSDTMLMethod.py, line 213, in
> __call__
>     (Object: reconfig_form)

<snip>

>   File
> /usr/local/stow/zope-2.3.1/lib/zope/lib/python/SearchIndex/UnTextIndex.py,
> line 448, in __getitem__
> TypeError: (see above)

Yes this is a catalog bug, which is fixed in CVS.  You can, in this
case, safely ignore it, and continue using the portal (your configuration
changes may not have been saved, however).

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org