From 186c0cdaa3e7a62c0afca640a5fbe57f935343a5 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 11 Dec 2002 01:03:38 +0000 Subject: [PATCH] fixed nasty sorting bug that was lowercasing properties git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1401 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 1 + roundup/backends/back_anydbm.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 2d30a8a..e29f68d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -20,6 +20,7 @@ are given with the most recent entry first. - finished of handling of retired flag in filter() (sf bug 635260) - allow StringHTMLProperty in MultilinkHTMLProperty test to work - don't set explicit None Link properties in web create +- fixed nasty sorting bug that was lowercasing properties 2002-11-07 0.5.2 diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index 291c128..61606ae 100644 --- a/roundup/backends/back_anydbm.py +++ b/roundup/backends/back_anydbm.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.93 2002-11-28 07:02:23 richard Exp $ +#$Id: back_anydbm.py,v 1.94 2002-12-11 01:03:38 richard Exp $ ''' This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python @@ -1703,9 +1703,9 @@ class Class(hyperdb.Class): if isinstance(propclass, String): # clean up the strings if av and av[0] in string.uppercase: - av = an[prop] = av.lower() + av = av.lower() if bv and bv[0] in string.uppercase: - bv = bn[prop] = bv.lower() + bv = bv.lower() if (isinstance(propclass, String) or isinstance(propclass, Date)): # it might be a string that's really an integer -- 2.30.2