[Zope-dev] ZCatalog bug?

Adam Chlipala chilip@ptd.net
Sun, 08 Apr 2001 18:48:59 -0400


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)
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: reconfig_form)
  File /var/lib/zope/Products/CMFCore/FSDTMLMethod.py, line 213, in
__call__
    (Object: standard_html_header)
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: standard_html_header)
  File /var/lib/zope/Products/CMFCore/FSDTMLMethod.py, line 213, in
__call__
    (Object: actions_box)
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: actions_box)
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_Let.py,
line 146, in render
    (Object: isAnon="portal_membership.isAnonymousUser()"
          AuthClass="isAnon and 'GuestActions' or 'MemberActions'"
          uname="isAnon and 'Guest'
                 or
portal_membership.getAuthenticatedMember().getUserName()"
          obj="this()"
          actions="portal_actions.listFilteredActionsFor(obj)"
          user_actions="actions['user']"
          folder_actions="actions['folder']"
          object_actions="actions['object'] + actions['workflow']"
          global_actions="actions['global']")
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_Util.py,
line 334, in eval
    (Object: portal_actions.listFilteredActionsFor(obj))
    (Info: portal_actions)
  File <string>, line 0, in ?
  File /var/lib/zope/Products/CMFCore/ActionsTool.py, line 162, in
listFilteredActionsFor
    (Object: portal_actions)
  File /var/lib/zope/Products/CMFCore/WorkflowTool.py, line 222, in
listActions
    (Object: portal_workflow)
  File /var/lib/zope/Products/CMFCore/DefaultWorkflow.py, line 209, in
listGlobalActions
  File /var/lib/zope/Products/CMFCore/CatalogTool.py, line 200, in
searchResults
    (Object: Traversable)
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/Products/ZCatalog/ZCatalog.py,
line 535, in searchResults
    (Object: Traversable)
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/Products/ZCatalog/Catalog.py,
line 651, in searchResults
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/Products/ZCatalog/Catalog.py,
line 542, in _indexedSearch
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/SearchIndex/UnTextIndex.py,
line 513, in _apply_index
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/SearchIndex/UnTextIndex.py,
line 576, in query
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/SearchIndex/UnTextIndex.py,
line 640, in evaluate
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/SearchIndex/UnTextIndex.py,
line 591, in get_operands
  File
/usr/local/stow/zope-2.3.1/lib/zope/lib/python/SearchIndex/UnTextIndex.py,
line 448, in __getitem__
TypeError: (see above)

-- Adam Chlipala
   psion@devlocus.org
   http://home.devlocus.org/~psion/
   ICQ UIN: 489166
   AIM: PsionV
   If God does not exist, then anything is permitted.
   ...
   I am the Word that speaks Itself
   I am the Eye that sees Itself
   As above, so below