Skip to content

Commit 08e848d

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 9b7708c commit 08e848d

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
@@ -18,6 +18,7 @@ Fixed:
1818
if the request does not contain explicit @columns list
1919
- NumberHTMLProperty should return '' not "None" if not set (thanks
2020
William)
21+
- ensure multilink ordering in RDBMS backends (thanks Marcus Priesch)
2122

2223

2324
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.98.2.25 2004-10-15 01:10:22 richard Exp $
1+
# $Id: rdbms_common.py,v 1.98.2.26 2004-11-09 04:10:28 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -963,7 +963,9 @@ def getnode(self, classname, nodeid):
963963
self.cursor.execute(sql, (nodeid,))
964964
# extract the first column from the result
965965
# XXX numeric ids
966-
node[col] = [str(x[0]) for x in self.cursor.fetchall()]
966+
items = [int(x[0]) for x in self.cursor.fetchall()]
967+
items.sort ()
968+
node[col] = [str(x) for x in items]
967969

968970
# save off in the cache
969971
key = (classname, nodeid)

0 commit comments

Comments
 (0)