[Zope3-Users] FieldIndex on boolean field - error

Aleksander Kowalczyk thealx at poczta.onet.pl
Wed Mar 28 17:09:11 EDT 2007


On 3/28/07, FB <fbo2 at gmx.net> wrote:
>
> Hi,
>
> On Wed, Mar 28, 2007 at 03:55:28PM +0000, Alek Kowalczyk wrote:
> > Hi,Is FieldIndex able to index bool field? If not, how to create own
> > index for doing that?
> >
> > anomalies = catalog.searchResults(anomaly=True)
>
> Try
>
> catalog.searchResults(anomaly=(True,True))
>
> BTW: The error is raised because the fieldindex tries to interpret 'True'
> as a tuple.


Thanks! I didn't think that the solution is so simple.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20070328/b94ea1f2/attachment.htm


More information about the Zope3-users mailing list