[Zope-CMF] Question regarding CMF-Topic

Tres Seaver tseaver@zope.com
14 May 2002 08:21:42 -0400


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