Welcome to Squishdot Squishdot How-To Newbies Websites
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Final fix for making Zope 2.1.0 work with Squishdot 0.3.2
Squishdot Posted by Butch Landingin on Sunday December 12, 11:31AM, 1999
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_dict

While 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.

-- Butch

<  |  >

 

Related Links
  • Articles on Squishdot
  • Also by Butch Landingin
  • Contact author
  • File Attachment
  • Click to download attachment TextIndex.py
    14KB (15330 bytes)

  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "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 Chris Withers.