[ZCM] [ZC] 600/ 3 Resubmit "sort_on breaks results if sorted
attribute is missing"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Sat May 22 06:17:43 EDT 2004
Issue #600 Update (Resubmit) "sort_on breaks results if sorted attribute is missing"
Status Pending, Catalog/bug medium
To followup, visit:
http://collector.zope.org/Zope/600
==============================================================
= Resubmit - Entry #3 by mjablonski on May 22, 2004 6:17 am
Status: Rejected => Pending
Sorry for rejecting first (used a "wrong" test-case), but after another test (which I set up properly as Chris describes) in current Zope 2.7 I get the same error. Seems to be a bug, which can drive you crazy when using ZCatalog.
________________________________________
= Reject - Entry #2 by mjablonski on May 22, 2004 6:01 am
Status: Pending => Rejected
This is not a bug, but wrong usage of ZCatalog. "sort_on" can only be used on registered metadata (see metadata-tab in ZCatalog), not on an index.
________________________________________
= Request - Entry #1 by chrisw on Oct 2, 2002 11:35 am
Okay, take a ZCatalog which has a FieldIndex called dateofpublication and some others.
Search it so that it returns some objects. Some of these objects have dateofpublication attributes, some dont, but all match the search criteria.
Now, add sort_on='dateofpublication' to your search terms.
I'd expect the objects without dateofpublication to be up the top of the results list.
What appears to happen is that they're dropped from the results completely, which really strikes me as a bug.
==============================================================
More information about the Zope-Collector-Monitor
mailing list