make tags unicode V00.12
authorymh <ymh.work@gmail.com>
Fri, 06 May 2011 02:10:17 +0200
changeset 101 e414b5897c3f
parent 100 6015c3c7eee9
child 102 db9549cf9fce
make tags unicode
src/ldt/ldt/__init__.py
src/ldt/ldt/ldt_utils/contentindexer.py
--- a/src/ldt/ldt/__init__.py	Fri May 06 02:01:24 2011 +0200
+++ b/src/ldt/ldt/__init__.py	Fri May 06 02:10:17 2011 +0200
@@ -1,4 +1,4 @@
-VERSION = (0, 11, 0, "final", 0)
+VERSION = (0, 12, 0, "final", 0)
 
 
 def get_version():
--- a/src/ldt/ldt/ldt_utils/contentindexer.py	Fri May 06 02:01:24 2011 +0200
+++ b/src/ldt/ldt/ldt_utils/contentindexer.py	Fri May 06 02:10:17 2011 +0200
@@ -60,7 +60,7 @@
                 tags = elementNode.get(u"tags", None)
                 
                 if tags is not None:                            
-                    tags.replace(",", ";")
+                    tags.replace(u",", u";")
                 
                 if tags is None or len(tags) == 0:
                     tags = u""
@@ -76,7 +76,7 @@
                         tags = tags + u" ; " + tagnode
                 
                 if tags is None:
-                    tags = ""
+                    tags = u""
                 tags = u";".join([tag[0:50] for tag in tags.split(u";")])