[ZCM] [ZC] 1183/ 2 Reject "sequence.sort error"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri Jan 16 12:18:59 EST 2004


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

==============================================================
= Reject - Entry #2 by ajung on Jan 16, 2004 12:18 pm

 Status: Pending => Rejected

Can not be reproduced.


________________________________________
= 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