[ZCM] [ZC] 1299/ 2 Resolve "sequence.sort bug sorting sequence
containing Missing.Value"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed May 12 11:13:36 EDT 2004
Issue #1299 Update (Resolve) "sequence.sort bug sorting sequence containing Missing.Value"
Status Resolved, Zope/bug+solution medium
To followup, visit:
http://zope.org/Collectors/Zope/1299
==============================================================
= Resolve - Entry #2 by ajung on May 12, 2004 11:13 am
Status: Pending => Resolved
Fixed on 2.7 branch and HEAD
________________________________________
= Request - Entry #1 by kedder on Apr 22, 2004 5:43 am
When sorting sequence with multiple sort columns using sequence.sort function and when sequence contains Missing.Value objects, returned from catalog query, sort fails with error:
Error Type: TypeError
Error Value: unhashable type
Module DocumentTemplate.sequence.SortEx, line 103, in sort
The problem i believe is in this line (in DocumentTemplate/sequence/SortEx.py, line 103):
if not basic_type(akey):
that should be:
if not basic_type(type(akey)):
like in case with single sort key below in that file.
==============================================================
More information about the Zope-Collector-Monitor
mailing list