Re: [Zope-dev] Woah! Weirdy Catalog Error :-S

2001-05-21 Thread Chris Withers

Chris McDonough wrote:
> 
> It's possible to catch this error, but it's not possible to allow folks
> to search for things with parens in them currently.

I'm not having a good time catching it:

from SearchIndex import TextIndex

try:
 brains = apply(self.searchResults,(REQUEST,),kw)
except TextIndex.QueryError:
 brains = []

...doesn't actually catch the exception :-S

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Woah! Weirdy Catalog Error :-S

2001-05-21 Thread Chris McDonough

> Huh? Why does that say 2.3.1 when the paths above suggest Zope 2.3.2?!

No idea.

> You can reproduce this by going to Squishdot.org and searching for "Error Value:
> frexp() result out of range".

I'd imagine this has to do with the fact that parens are meaningful to
the Catalog.  This happens when you search for, e.g. just "()".

It's possible to catch this error, but it's not possible to allow folks
to search for things with parens in them currently.

Sorry,

- C

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Woah! Weirdy Catalog Error :-S

2001-05-21 Thread Chris Withers

Automatic Zope Response wrote:
> 
> Zope reported an error for:
> Error Type:  TextIndex.QueryError
> 
> Error Value: Malformed query
> 
> Traceback:
>  Traceback (innermost last):
>   File /usr/local/zope/2.3.2_base/lib/python/ZPublisher/Publish.py, line 171, in 
>publish
>   File /usr/local/zope/2.3.2_base/lib/python/ZPublisher/mapply.py, line 160, in 
>mapply
> (Object: search)
>   File /usr/local/zope/2.3.2_base/lib/python/ZPublisher/Publish.py, line 112, in 
>call_object
> (Object: search)
>   File /usr/local/hosting/accounts/swishdot/Products/Squishdot/SquishSite.py, line 
>798, in search
> (Object: Traversable)
>   File /usr/local/hosting/accounts/swishdot/Products/Squishdot/SquishSite.py, line 
>903, in __call__
> (Object: Traversable)
>   File /usr/local/zope/2.3.2_base/lib/python/Products/ZCatalog/ZCatalog.py, line 
>535, in searchResults
> (Object: Traversable)
>   File /usr/local/zope/2.3.2_base/lib/python/Products/ZCatalog/Catalog.py, line 651, 
>in searchResults
>   File /usr/local/zope/2.3.2_base/lib/python/Products/ZCatalog/Catalog.py, line 542, 
>in _indexedSearch
>   File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 513, 
>in _apply_index
>   File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 576, 
>in query
>   File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 640, 
>in evaluate
>   File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 601, 
>in get_operands
>   File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 653, 
>in evaluate
> TextIndex.QueryError: Malformed query

> --
>  REQUEST object dump:
> --
> SERVER_SOFTWARE => Zope/Zope 2.3.1 (source release, python 1.5.2, linux2) 
>ZServer/1.1b1

Huh? Why does that say 2.3.1 when the paths above suggest Zope 2.3.2?!

> URL => http://www.squishdot.org/search
> author =>
> batch_size => 20
> body => Error Value: frexp() result out of range
> op => comments
> reviewed => 1
> subject =>
> textToSearch => Error Value: frexp() result out of range

You can reproduce this by going to Squishdot.org and searching for "Error Value:
frexp() result out of range".

Please don't do it too many times as I get an email for each one. If you do,
I'll hunt down your IP address and kill you ;-)

Any ideas?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )