[Zope-Checkins] SVN: Zope/trunk/ Collector #1299: fixed bug in sequence.sort()....any my first SVN commit

Andreas Jung andreas at andreas-jung.com
Wed May 12 11:10:32 EDT 2004


Log message for revision 24591:
Collector #1299: fixed bug in sequence.sort()....any my first SVN commit




-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2004-05-12 14:59:48 UTC (rev 24590)
+++ Zope/trunk/doc/CHANGES.txt	2004-05-12 15:10:32 UTC (rev 24591)
@@ -109,6 +109,8 @@
 
     Bugs fixed
 
+     - Collector #1299: Fixed bug in sequence.sort()
+
      - Collector #1159: Added test for __MACH__ to initgroups.c so the
        initgroups method becomes available on Mac OS X.
 

Modified: Zope/trunk/lib/python/DocumentTemplate/sequence/SortEx.py
===================================================================
--- Zope/trunk/lib/python/DocumentTemplate/sequence/SortEx.py	2004-05-12 14:59:48 UTC (rev 24590)
+++ Zope/trunk/lib/python/DocumentTemplate/sequence/SortEx.py	2004-05-12 15:10:32 UTC (rev 24591)
@@ -98,7 +98,7 @@
                         else: akey = getattr(v, sk)
                     except (AttributeError, KeyError):
                         akey = None
-                    if not basic_type(akey):
+                    if not basic_type(type(akey)):
                         try: akey = akey()
                         except: pass
                     k.append(akey)




More information about the Zope-Checkins mailing list