From 6c25e2ded64ff3e67402305fc5ab0431d90f277a Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 12 Aug 2003 01:49:30 +0000 Subject: [PATCH] sort multilinks a little better for grouping (sf bug 772935) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1806 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 1 + roundup/backends/back_anydbm.py | 16 +--------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 8e7299a..cca42fc 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,7 @@ are given with the most recent entry first. - roundup-server now logs IP addresses by default (sf bug 778795) - logfile must be specified if pidfile is (sf bug 772820) - timelog editing via csv interface crashes (sf bug 699837) +- sort multilinks a little better for grouping (sf bug 772935) 2003-07-29 0.6.0b4 diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index b15ce46..62d8fb6 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.121 2003-05-09 01:47:50 richard Exp $ +#$Id: back_anydbm.py,v 1.122 2003-08-12 01:49:30 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 @@ -1886,20 +1886,6 @@ class Class(hyperdb.Class): r = cmp(bv, av) if r != 0: return r - # Multilink properties are sorted according to how many - # links are present. - elif isinstance(propclass, Multilink): - r = cmp(len(av), len(bv)) - if r == 0: - # Compare contents of multilink property if lenghts is - # equal - r = cmp ('.'.join(av), '.'.join(bv)) - if r: - if dir == '+': - return r - else: - return -r - else: # all other types just compare if dir == '+': -- 2.30.2