changeset 2888:95a8b49090de maint-0.7

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Tue, 09 Nov 2004 04:10:28 +0000
parents b72cd8fa1b9c
children 17df4dc4ae51
files CHANGES.txt roundup/backends/rdbms_common.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Sun Nov 07 23:46:55 2004 +0000
+++ b/CHANGES.txt	Tue Nov 09 04:10:28 2004 +0000
@@ -18,6 +18,7 @@
   if the request does not contain explicit @columns list
 - NumberHTMLProperty should return '' not "None" if not set (thanks
   William)
+- ensure multilink ordering in RDBMS backends (thanks Marcus Priesch)
 
 
 2004-10-15 0.7.8
--- a/roundup/backends/rdbms_common.py	Sun Nov 07 23:46:55 2004 +0000
+++ b/roundup/backends/rdbms_common.py	Tue Nov 09 04:10:28 2004 +0000
@@ -1,4 +1,4 @@
-# $Id: rdbms_common.py,v 1.98.2.25 2004-10-15 01:10:22 richard Exp $
+# $Id: rdbms_common.py,v 1.98.2.26 2004-11-09 04:10:28 richard Exp $
 ''' Relational database (SQL) backend common code.
 
 Basics:
@@ -963,7 +963,9 @@
             self.cursor.execute(sql, (nodeid,))
             # extract the first column from the result
             # XXX numeric ids
-            node[col] = [str(x[0]) for x in self.cursor.fetchall()]
+            items = [int(x[0]) for x in self.cursor.fetchall()]
+            items.sort ()
+            node[col] = [str(x) for x in items]
 
         # save off in the cache
         key = (classname, nodeid)

Roundup Issue Tracker: http://roundup-tracker.org/