Hi!
Zope 2.3.1 final has been released - you can download it from Zope.org:
http://www.zope.org/Products/Zope/2.3.1/
Something broken in the ZCatalog again :( I can search a russian word if it is complete word, for example my surname "broytman" (in Russian) or name "oleg": http://phd.russ.ru/zope.net.ru/search-results?text_search=%C2%D2%CF%CA%D4%CD...
I can even search an incomplete word with * ("broyt*"): http://phd.russ.ru/zope.net.ru/search-results?text_search=%C2%D2%CF%CA%D4*
But I cannot search incomplete word ("broyt", "ole"): http://phd.russ.ru/zope.net.ru/search-results?text_search=%C2%D2%CF%CA%D4
This worked in 2.3.1b3, but stopped in 2.3.1 final :(((
<h2>Zope Error</h2> <p>Zope has encountered an error while publishing this resource.</p>
<p> <strong>Error Type: TypeError</strong><br> <strong>Error Value: expected integer key</strong><br>
Traceback (innermost last): File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.3.1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: search-results) File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: search-results) File /usr/local/Zope-2.3.1-src/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: search-results) File /usr/local/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: search-results) File /usr/local/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: catalog="_.getitem('search-catalog', 0)") File /usr/local/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: REQUEST.set('search1', catalog(PrincipiaSearchSource=text_search))) (Info: REQUEST) File <string>, line 0, in ? File /usr/local/Zope-2.3.1-src/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in searchResults (Object: Traversable) File /usr/local/Zope-2.3.1-src/lib/python/Products/ZCatalog/Catalog.py, line 651, in searchResults File /usr/local/Zope-2.3.1-src/lib/python/Products/ZCatalog/Catalog.py, line 542, in _indexedSearch File /usr/local/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py, line 513, in _apply_index File /usr/local/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py, line 576, in query File /usr/local/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py, line 616, in evaluate File /usr/local/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py, line 448, in __getitem__ TypeError: (see above)
Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
And this has nothing with russian texts:
http://phd.russ.ru/zope.net.ru/search-results?text_search=zope http://phd.russ.ru/zope.net.ru/search-results?text_search=zop
On Sat, 31 Mar 2001, Oleg Broytmann wrote:
Something broken in the ZCatalog again :( I can search a russian word if it is complete word, for example my surname "broytman" (in Russian) or name "oleg": http://phd.russ.ru/zope.net.ru/search-results?text_search=%C2%D2%CF%CA%D4%CD...
I can even search an incomplete word with * ("broyt*"): http://phd.russ.ru/zope.net.ru/search-results?text_search=%C2%D2%CF%CA%D4*
But I cannot search incomplete word ("broyt", "ole"): http://phd.russ.ru/zope.net.ru/search-results?text_search=%C2%D2%CF%CA%D4
This worked in 2.3.1b3, but stopped in 2.3.1 final :(((
<h2>Zope Error</h2> <p>Zope has encountered an error while publishing this resource.</p>
<p> <strong>Error Type: TypeError</strong><br> <strong>Error Value: expected integer key</strong><br>
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
I'll look into this, sorry Oleg.. someone else reported the same error in the Collector. Bummer.
----- Original Message ----- From: "Oleg Broytmann" phd@phd.fep.ru To: "Brian Lloyd" brian@digicool.com Cc: "Zope Mailing List" zope@zope.org Sent: Saturday, March 31, 2001 9:06 AM Subject: Re: [Zope] Re: [Zope-Annce] ANNOUNCE: Zope 2.3.1 final released
And this has nothing with russian texts:
http://phd.russ.ru/zope.net.ru/search-results?text_search=zope http://phd.russ.ru/zope.net.ru/search-results?text_search=zop
On Sat, 31 Mar 2001, Oleg Broytmann wrote:
Something broken in the ZCatalog again :( I can search a russian word
if
it is complete word, for example my surname "broytman" (in Russian) or name "oleg":
http://phd.russ.ru/zope.net.ru/search-results?text_search=%C2%D2%CF%CA%D4%CD %C1%CE
I can even search an incomplete word with * ("broyt*"):
http://phd.russ.ru/zope.net.ru/search-results?text_search=%C2%D2%CF%CA%D4*
But I cannot search incomplete word ("broyt", "ole"):
http://phd.russ.ru/zope.net.ru/search-results?text_search=%C2%D2%CF%CA%D4
This worked in 2.3.1b3, but stopped in 2.3.1 final :(((
<h2>Zope Error</h2> <p>Zope has encountered an error while publishing this resource.</p>
<p> <strong>Error Type: TypeError</strong><br> <strong>Error Value: expected integer key</strong><br>
Oleg.
Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi!
On Mon, 2 Apr 2001, Chris McDonough wrote:
I'll look into this, sorry Oleg.. someone else reported the same error in the Collector. Bummer.
<h2>Zope Error</h2> <p>Zope has encountered an error while publishing this resource.</p>
<p> <strong>Error Type: TypeError</strong><br> <strong>Error Value: expected integer key</strong><br>
From the error I can guess that Catalog, if not found any item (searching for "zop" instead of "zope") returns something like None or empty list or such, where other parts of code expect an integer (a number of items?)
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
This is fixed in CVS about 5 mins ago, Oleg... will take a little while to make its way to the outside world, but here's the diff.
--- Updated File GlobbingLexicon.py in package Zope2 -- --- GlobbingLexicon.py 2001/03/27 23:49:13 1.8 +++ GlobbingLexicon.py 2001/04/02 18:19:45 1.9 @@ -231,7 +231,9 @@ digrams.append( (pattern[i] + self.eow) )
if not globbing: - result = self._lexicon.get(pattern, ()) + result = self._lexicon.get(pattern, None) + if result is None: + return () return (result, )
## now get all of the intsets that contain the result digrams
----- Original Message ----- From: "Oleg Broytmann" phd@phd.fep.ru To: "Chris McDonough" chrism@digicool.com Cc: "Zope Mailing List" zope@zope.org Sent: Monday, April 02, 2001 1:20 PM Subject: Re: [Zope] Re: [Zope-Annce] ANNOUNCE: Zope 2.3.1 final released
Hi!
On Mon, 2 Apr 2001, Chris McDonough wrote:
I'll look into this, sorry Oleg.. someone else reported the same error
in
the Collector. Bummer.
<h2>Zope Error</h2> <p>Zope has encountered an error while publishing this
resource.</p>
<p> <strong>Error Type: TypeError</strong><br> <strong>Error Value: expected integer key</strong><br>
From the error I can guess that Catalog, if not found any item (searching for "zop" instead of "zope") returns something like None or empty list or such, where other parts of code expect an integer (a number of items?)
Oleg.
Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )