changeset 3998:20c9a1cefb39

make sure item ids are str()
author Richard Jones <richard@users.sourceforge.net>
date Mon, 18 Aug 2008 07:03:44 +0000
parents edbb89730dc2
children 953234004ba2
files roundup/backends/indexer_common.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/backends/indexer_common.py	Mon Aug 18 06:57:49 2008 +0000
+++ b/roundup/backends/indexer_common.py	Mon Aug 18 07:03:44 2008 +0000
@@ -1,4 +1,4 @@
-#$Id: indexer_common.py,v 1.9 2008-08-18 06:57:49 richard Exp $
+#$Id: indexer_common.py,v 1.10 2008-08-18 07:03:44 richard Exp $
 import re, sets
 
 from roundup import hyperdb
@@ -61,7 +61,9 @@
                 continue
 
             # if it's a property on klass, it's easy
-            nodeid = entry[1]
+            # (make sure the nodeid is str() not unicode() as returned by some
+            # backends as that can cause problems down the track)
+            nodeid = str(entry[1])
             if classname == klass.classname:
                 if not nodeids.has_key(nodeid):
                     nodeids[nodeid] = {}

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