[Zope] Catalog wierdness?
Mon, 17 Mar 2003 11:06:12 -0500
There are known bugs in the BTree code in 2.5.1 that could be exposed on =
seaches. Just to rule this out, can you do a simple isolated test on Zope=
2.6.1 that definitely fails on 2.5.1? If you still see this behavior ther=
let me know and I will try to find out what's going on.
On Sunday 16 March 2003 05:01 pm, Mark Gibson wrote:
> Zope Version=20
> (Zope 2.5.1 (source release, python 2.1, linux2), python 2.1.3, linux2=
> Python Version=20
> 2.1.3 (#1, Apr 22 2002, 16:16:34) [GCC 2.96 20000731 (Red Hat Linux 7.=
> In the catalog, I have a FieldIndex that contains an integer.
> I want to select all objects where that number is 0 or less.
> objs=3DCatalog(number_times_sent=3D0 ,number_times_sent_usage=3D'range:=
> However, this returns all items, regardless of the value of=20
> If an object has number_times_sent to 2, and I do this call:
> objs=3D Catalog(number_times_sent=3D1 ,number_times_sent_usage=3D'range=
> It works as expected, and that object isn't returned. Also, when=20
> number_times_sent is 0, the following does work.
> objs=3D Catalog(number_times_sent=3D0)
> Since I won't have a negative value, this does what I want. However,
> number_times_sent is variable, so it would be nice if 'range:max' worke=
> Is there any logical explanation? Bug? Am I doing something wrong?
> Zope maillist - Zope@zope.org
> ** No cross posts or HTML encoding! **
> (Related lists -=20
> http://mail.zope.org/mailman/listinfo/zope-dev )