[ZCM] [ZC] 1183/ 1 Request "sequence.sort error"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu Jan 15 03:57:38 EST 2004


Issue #1183 Update (Request) "sequence.sort error"
 Status Pending, Zope/bug low
To followup, visit:
  http://zope.org/Collectors/Zope/1183

==============================================================
= Request - Entry #1 by Anonymous User on Jan 15, 2004 3:57 am

 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 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.) 
 Dieter Maurer has suggested me this solution:
 "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)):
 [...]
 Zope 2.7 contains the same bug"
==============================================================




More information about the Zope-Collector-Monitor mailing list