summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a7fe268)
raw | patch | inline | side by side (parent: a7fe268)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 12 Aug 2003 01:49:30 +0000 (01:49 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 12 Aug 2003 01:49:30 +0000 (01:49 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1806 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/backends/back_anydbm.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 8e7299ae9ce056348c9afc8c364305d6b29dbc77..cca42fcf3ba9afaccb307c39d289ab7b72eae0dc 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- 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
index b15ce46f78b2a55be665b13f7dc1416c7e7cd2f6..62d8fb6524472e91e86ae54832477c3e9b29f854 100644 (file)
# 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
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 == '+':