summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9eb15f7)
raw | patch | inline | side by side (parent: 9eb15f7)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 27 Jul 2001 05:17:14 +0000 (05:17 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 27 Jul 2001 05:17:14 +0000 (05:17 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@91 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/hyperdb.py | patch | blob | history |
diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py
index f9f3a2651f5dca7bb257480298963fbdf324a73a..2e62efb6d5ec1a7e811d91e99f714a89b642a794 100644 (file)
--- a/roundup/hyperdb.py
+++ b/roundup/hyperdb.py
-# $Id: hyperdb.py,v 1.2 2001-07-22 12:09:32 richard Exp $
+# $Id: hyperdb.py,v 1.3 2001-07-27 05:17:14 richard Exp $
# standard python modules
import cPickle, re, string
db = self.db, cl=self):
a_id, an = a
b_id, bn = b
+ # sort by group and then sort
for list in group, sort:
for dir, prop in list:
# handle the properties that might be "faked"
elif dir == '-':
r = cmp(len(bv), len(av))
if r != 0: return r
+ # end for dir, prop in list:
+ # end for list in sort, group:
+ # if all else fails, compare the ids
return cmp(a[0], b[0])
+
l.sort(sortfun)
return [i[0] for i in l]
#
# $Log: not supported by cvs2svn $
+# Revision 1.2 2001/07/22 12:09:32 richard
+# Final commit of Grande Splite
+#
# Revision 1.1 2001/07/22 11:58:35 richard
# More Grande Splite
#