Skip to content

Commit 7030f5a

Browse files
author
Richard Jones
committed
just some comments
1 parent 3218279 commit 7030f5a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

roundup/hyperdb.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: hyperdb.py,v 1.2 2001-07-22 12:09:32 richard Exp $
1+
# $Id: hyperdb.py,v 1.3 2001-07-27 05:17:14 richard Exp $
22

33
# standard python modules
44
import cPickle, re, string
@@ -593,6 +593,7 @@ def sortfun(a, b, sort=sort, group=group, properties=self.getprops(),
593593
db = self.db, cl=self):
594594
a_id, an = a
595595
b_id, bn = b
596+
# sort by group and then sort
596597
for list in group, sort:
597598
for dir, prop in list:
598599
# handle the properties that might be "faked"
@@ -661,7 +662,11 @@ def sortfun(a, b, sort=sort, group=group, properties=self.getprops(),
661662
elif dir == '-':
662663
r = cmp(len(bv), len(av))
663664
if r != 0: return r
665+
# end for dir, prop in list:
666+
# end for list in sort, group:
667+
# if all else fails, compare the ids
664668
return cmp(a[0], b[0])
669+
665670
l.sort(sortfun)
666671
return [i[0] for i in l]
667672

@@ -735,6 +740,9 @@ def Choice(name, *options):
735740

736741
#
737742
# $Log: not supported by cvs2svn $
743+
# Revision 1.2 2001/07/22 12:09:32 richard
744+
# Final commit of Grande Splite
745+
#
738746
# Revision 1.1 2001/07/22 11:58:35 richard
739747
# More Grande Splite
740748
#

0 commit comments

Comments
 (0)