[Zope-CMF] Search

Info@sjeems.nl info@sjeems.nl
Tue, 10 Apr 2001 19:05:00 +0200


Can someone help me?
If I try the CMF search option I get an error. I Only get the error if there
are no results found. But sometimes if  there are no results it gives me we
found 0 results.

The site is hosted at hurrah.com so I think there is nothing wrong with the
setup of the srver.



The error I get is:

----------------------------------
Sorry, a Zope error occurred.

Traceback (innermost last):
  File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /home/sjeems/Zope-2.3.1-src/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: Traversable)
  File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: search)
  File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line
112, in call_object
    (Object: search)
  File
/home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/FSDTMLMethod.py,
line 218, in __call__
    (Object: search)
  File /home/sjeems/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: search)
  File /home/sjeems/Zope-2.3.1-src/lib/python/OFS/DTMLMethod.py, line 182,
in __call__
    (Object: standard_html_header)
  File /home/sjeems/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: standard_html_header)
  File /home/sjeems/Zope-2.3.1-src/lib/python/OFS/DTMLMethod.py, line 182,
in __call__
    (Object: actions_box)
  File /home/sjeems/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: actions_box)
  File /home/sjeems/Zope-2.3.1-src/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 /home/sjeems/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_Util.py,
line 334, in eval
    (Object: portal_actions.listFilteredActionsFor(obj))
    (Info: portal_actions)
  File <string>, line 0, in ?
  File
/home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/ActionsTool.py, line
162, in listFilteredActionsFor
    (Object: portal_actions)
  File
/home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/WorkflowTool.py,
line 222, in listActions
    (Object: portal_workflow)
  File
/home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/DefaultWorkflow.py,
line 209, in listGlobalActions
  File
/home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/CatalogTool.py, line
200, in searchResults
    (Object: Traversable)
  File /home/sjeems/Zope-2.3.1-src/lib/python/Products/ZCatalog/ZCatalog.py,
line 535, in searchResults
    (Object: Traversable)
  File /home/sjeems/Zope-2.3.1-src/lib/python/Products/ZCatalog/Catalog.py,
line 651, in searchResults
  File /home/sjeems/Zope-2.3.1-src/lib/python/Products/ZCatalog/Catalog.py,
line 542, in _indexedSearch
  File /home/sjeems/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py,
line 513, in _apply_index
  File /home/sjeems/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py,
line 576, in query
  File /home/sjeems/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py,
line 616, in evaluate
  File /home/sjeems/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py,
line 448, in __getitem__
TypeError: expected integer key

----------------------------------------------

Can someone please help me???

Thanks,
James