[ZWeb] "Token 'ATOM' required, 'EOF' found" error in zopeorg

Andrew Sawyers andrew at zope.com
Thu Jan 20 12:16:12 EST 2005


Chris Withers wrote:
> Andrew Sawyers wrote:
> 
>>> But I still think there should be a knob to tweak on ZCTextIndex to 
>>> say "don't raise silyl exceptions"
>>
>>
>> You're asking for DWIM?
> 
> 
> I don't think a checkbox that says "return zero results if a query parse 
> error occurs" is DWIM.
> 
> cheers,
> 
> Chris
> 
No, but that's not what you said; you said don't raise silly exceptions. 
  :)  There's a difference' silly != 0.

Returning 0 results when there's a query structure error is worse then 
returning an error.  You're just masking an end users mis-use of the 
system; at least errors might generate feedback.  No results would 
likely lead one to belive the site has a horrible search backend or no 
content.  :)

In the cases where I've had to catch the query prior to passing it to 
the catalog, one has the opportunity to inform the user.
A

-- 
Zope Managed Hosting
Systems Administrator/Software Engineer
Zope Corporation
(540) 361-1700


More information about the Zope-web mailing list