Load a ZODB with stuff... the cd to lib/python invoke python
import Zope app = Zope.app() (and pretending your catalog is named "acatalog" in the Zope root) app.acatalog.searchResults({'someindexname':'some text', 'someotherindexname':'some other text'})
If you can boil it down to the simplest query that results in the error (and let us know what kinds of indexes your indexnames respectively refer to), we can build a unit test that exhibits the problem and fix it. ... that ----- Original Message ----- From: "Oleg Broytmann" <phd@phd.pp.ru> To: "Chris McDonough" <chrism@digicool.com> Cc: "Zope Mailing List" <zope@zope.org> Sent: Friday, March 16, 2001 12:58 PM Subject: Re: [Zope] Re: [Zope-Annce] ANNOUNCE: Zope 2.3.1 beta 2 released
On Fri, 16 Mar 2001, Chris McDonough wrote:
The unit tests are pretty complicated. If you can't figure them out or where to put a test, a command-line demonstration of the problem at the Python prompt would be just as good (we'll turn it into a unit test).
How can I test Catalog from command-line? Create a minimal ZODB and index it?
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.