[Zope] Sequence.sort error
Dieter Maurer
dieter at handshake.de
Wed Jan 14 16:52:13 EST 2004
Zanotti Michele wrote at 2004-1-14 15:04 +0100:
>This dtml instruction:
>
><dtml-in
>expr="_.sequence.sort(myCatalog(),((_.string.split(ordper)[0],'nocase','asc'
>),(_.string.split(ordper)[1],'nocase','asc')))" size=num start=query_start>
>
>Gives me (Zope 2.6.3) this error:
> ...
>Module <string>, line 2, in f
>Module DocumentTemplate.sequence.SortEx, line 103, in sort
>TypeError: unhashable type (Also, an error occurred while attempting to
>render the standard error message.)
>
>In Zope 2.5 this code works (no errors), why?
A bug:
I expect line 103 (in "DocumentTemplate.sequence.SortEx") looks like:
if not basic_type(akey):
Change this to
if not basic_type(type(akey)):
Please file a bug report to "http://www.zope.org/Collectors/Zope".
Zope 2.7 contains the same bug.
--
Dieter
More information about the Zope
mailing list