dabo Commit
Revision 4868
Date: 2008-12-17 12:01:41 -0800 (Wed, 17 Dec 2008)
Author: Cito
Trac: http://trac.dabodev.com/dabo/changeset/4868
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Removed unnecessary relicts of former sort.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-12-17 19:28:57 UTC (rev 4867)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-12-17 20:01:41 UTC (rev 4868)
@@ -2647,12 +2647,13 @@
else:
sortingStrings = dataType in
("unicode", "string")
- sortfunc = None
if sortingStrings and not caseSensitive:
sortKey = caseInsensitiveSortKey
elif dataType in ("date", "datetime"):
# can't compare NoneType to these types:
sortKey = noneSortKey
+ else:
+ sortKey = None
sortList.sort(key=sortKey, reverse=(sortOrder
== "DESC"))
# Extract the rows into a new list, then set
the dataSet to the new list
@@ -2737,12 +2738,6 @@
sortList = [(str(vv), i) for vv, i in sortList]
compString = True
- if compString and not caseSensitive:
- # Use a case-insensitive sort.
- sortfunc = caseInsensitiveSort
- else:
- sortfunc = noneSort
-
# Now iterate through the list to find the matching value. I
know that
# there are more efficient search algorithms, but for this
purpose, we'll
# just use brute force
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]