'str' object is not callable error in find option

Bug #237326 reported by irkaltza
4
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Undecided
Unassigned

Bug Description

When you are searching something which does not exist in the site, it lounches an error like this:

Time 2008/06/04 12:58:47.073 GMT+2
User Name (User Id) xxxx(xxxx)
Request URL http://172.26.202.228:8090/once/manage_findResult
Exception Type TypeError
Exception Value 'str' object is not callable

Traceback (innermost last):

    * Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module Shared.DC.Scripts.Bindings, line 313, in __call__
    * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
    * Module App.special_dtml, line 178, in _exec
    * Module DocumentTemplate.DT_With, line 61, in render
    * Module DocumentTemplate.DT_Util, line 196, in eval
      __traceback_info__: _
    * Module <string>, line 0, in ?
    * Module OFS.FindSupport, line 163, in ZopeFind
    * Module OFS.FindSupport, line 163, in ZopeFind
    * Module OFS.FindSupport, line 124, in ZopeFind

TypeError: 'str' object is not callable

Display traceback as text

Revision history for this message
Robert Munro (rjmunro) wrote :

I find that most of my zope site's are unsearchable with the find option - it only takes one file in the system from one product to prevent searching ever working again, and the exception thrown usually gives no clue as to where the error is. I've written a little hack to /lib/python/OFS/FindSupport.py that adds a try-except around the search, so that the search can still proceed.

It marks the pages that cause errors as found in the search, but adds "Error Searching: " to their ID. This is useful for spotting the problem, but breaks the link in the results, so it needs polishing up. The patch is attached.

Revision history for this message
Andreas Jung (ajung) wrote :

I can not reproduce this error. How can it be triggered with a decent Zope installation?

Revision history for this message
Tres Seaver (tseaver) wrote :

We need a recipe for reproducing the failure here.

Changed in zope2:
status: New → Incomplete
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

Changed in zope2:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.