KeyError since installing Squishdot 0.4.0
Since I installed Squishdot 0.4.0 (yesterday) on Zope 2.1.6 (under Red Hat Linux) I've been getting KeyErrors when clicking on an article's topic image, which uses an URL like this: http://myserver/Zope/testsquish/search?subject=Squishdot&op=articles In Squishdot 0.3.2, the errors didn't occur. I applied the fixes mentioned by Michel Pelletier in his (Zope-dev] message ("The Mysterious Key Error and Unrelated Searc Result Bug"), and updated the ZCatalog. This didn't fix the problem. Here is the stack trace: Traceback (innermost last): File /data/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /data/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 179, in publish File /data/Zope-2.1.6/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /data/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 165, in publish File /data/Zope-2.1.6/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: search) File /data/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: search) File /data/Zope-2.1.6/lib/python/Products/Squishdot/Squishdot.py, line 954, in search (Object: ElementWithAttributes) File /data/Zope-2.1.6/lib/python/ZPublisher/HTTPRequest.py, line 760, in __getitem__ KeyError: (see above) Does anyone have any ideas on how to fix this? Thanks. David Trudgett
On Thu, 1 Jun 2000, David Trudgett wrote:
Since I installed Squishdot 0.4.0 (yesterday) on Zope 2.1.6 (under Red Hat Linux) I've been getting KeyErrors when clicking on an article's topic image, which uses an URL like this:
http://myserver/Zope/testsquish/search?subject=Squishdot&op=articles
Yep, sorry, this was a bug introduced in the move to ZCatalog. The workaround is to append &body= to the above URL. There's also a patch in the squishdot@egroups.com archives. This will be fixed in 0.4.1 due on Monday once I get back from my holiday :-) cheers, Chris
participants (2)
-
Chris Withers -
David Trudgett