Skip to content

Commit 8bc0545

Browse files
author
Richard Jones
committed
fixed nasty sorting bug that was lowercasing properties
1 parent f690300 commit 8bc0545

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ are given with the most recent entry first.
2020
- finished of handling of retired flag in filter() (sf bug 635260)
2121
- allow StringHTMLProperty in MultilinkHTMLProperty test to work
2222
- don't set explicit None Link properties in web create
23+
- fixed nasty sorting bug that was lowercasing properties
2324

2425

2526
2002-11-07 0.5.2

roundup/backends/back_anydbm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.93 2002-11-28 07:02:23 richard Exp $
18+
#$Id: back_anydbm.py,v 1.94 2002-12-11 01:03:38 richard Exp $
1919
'''
2020
This module defines a backend that saves the hyperdatabase in a database
2121
chosen by anydbm. It is guaranteed to always be available in python
@@ -1703,9 +1703,9 @@ def sortfun(a, b, sort=sort, group=group, properties=self.getprops(),
17031703
if isinstance(propclass, String):
17041704
# clean up the strings
17051705
if av and av[0] in string.uppercase:
1706-
av = an[prop] = av.lower()
1706+
av = av.lower()
17071707
if bv and bv[0] in string.uppercase:
1708-
bv = bn[prop] = bv.lower()
1708+
bv = bv.lower()
17091709
if (isinstance(propclass, String) or
17101710
isinstance(propclass, Date)):
17111711
# it might be a string that's really an integer

0 commit comments

Comments
 (0)