from the big-bug-squashing dept.
In a previous article, Scott Kaplan has put in a temporary fix to make Squishdot 0.3.2 work with the latest version of Zope (2.1.0). This involved several changes in the file TextIndex.py.
Brian Lloyd of Digital Creations has put in a fix in the CVS version (that I believe will be included in the next release of Zope) which also fixes this incompatibility. For more details, click on the "Read More" link below.
If you can't wait for the next release of Zope and need to make your Squishdot work with Zope 2.1.0 right away, modify the following line (line 217) in the file named TextIndex.py located in the directory at <installdir>/lib/python/SearchIndex where installdir is your Zope installation directory.
Change this line from:
from Lexicon import *to this:
from Lexicon import query, stop_word_dictWhile Scott's fix does work (Thanks a lot, BTW) -- Brian's fix will become the "official one" which will be included in the next release of Zope.
If you have already modified your installation using Scott's suggestions, you don't have to do this "new" fix; nor do you have to back his changes out in order to apply this fix, although it won't hurt to do so.
The bug was due to the "import *" which clobbered the module name scope BTree which was assigned in a previous statement.
I've attached the modified file for convenience, and you can just download this and replace the file named TextIndex.py in your Zope installation.
< | >
|"Any system that depends on reliability is unreliable." -- Nogg's Postulate|
|All trademarks and copyrights on this page are
owned by their respective companies.
Comments are owned by the Poster.
The Rest ©1999
Butch Landingin, ©2000-2002