[Zope-CMF] Question regarding CMF-Topic

Robert Rottermann robert@redcor.ch
Wed, 15 May 2002 10:25:51 +0200


Thanks for your answer,
that eliminates the problem with sorting.

But I would also like to do something like:
(Peru and forests) or (southamerica and forests)
this I could do when I was able to select the Subjects field twice.

Is there a way to do it now?

Robert

----- Original Message -----
From: "Tres Seaver" <tseaver@zope.com>
To: "Robert Rottermann" <robert@redcor.ch>
Cc: <zope-cmf@zope.org>
Sent: Tuesday, May 14, 2002 2:21 PM
Subject: Re: [Zope-CMF] Question regarding CMF-Topic


> On Tue, 2002-05-14 at 01:45, Robert Rottermann wrote:
> > Good morning,
> >
> > I have the impression, that one can only use a Criterion once in
defining a
> > topic query. This seems unfortunate to me.
> > So after say after defining a criterion on Title I can not sort by Title
> > because I can not select it to create a sort criterion.
> >
> > Did I misunderstand something or is this a flaw?
>
>
> You have not misunderstood.  the SortCriterion class contains a
> workaround for this problem:  its own 'field' attribute is None, which
> means that if you define the SortCriterion *first*, you will then be
> able to define a search criterion on the same index.
>
> Tres.
> --
> ===============================================================
> Tres Seaver                                tseaver@zope.com
> Zope Corporation      "Zope Dealers"       http://www.zope.com
>
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests
>