Skip to content

Commit 015dc0f

Browse files
author
Richard Jones
committed
ensure multilink ordering in RDBMS backends (thanks Marcus Priesch)
1 parent b12a4cb commit 015dc0f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Fixed:
5757
if the request does not contain explicit @columns list
5858
- NumberHTMLProperty should return '' not "None" if not set (thanks
5959
William)
60+
- ensure multilink ordering in RDBMS backends (thanks Marcus Priesch)
6061

6162

6263
2004-10-15 0.7.8

roundup/backends/rdbms_common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.138 2004-10-25 10:20:58 a1s Exp $
1+
# $Id: rdbms_common.py,v 1.139 2004-11-09 04:07:54 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -935,7 +935,9 @@ def getnode(self, classname, nodeid):
935935
self.cursor.execute(sql, (nodeid,))
936936
# extract the first column from the result
937937
# XXX numeric ids
938-
node[col] = [str(x[0]) for x in self.cursor.fetchall()]
938+
items = [int(x[0]) for x in self.cursor.fetchall()]
939+
items.sort ()
940+
node[col] = [str(x) for x in items]
939941

940942
# save off in the cache
941943
key = (classname, nodeid)

0 commit comments

Comments
 (0)