Author: tack
Date: Tue Apr 25 22:49:01 2006
New Revision: 1503

Modified:
   trunk/beacon/src/parser.py

Log:
Only do the gross unicode hack if the attribute is already unicode.


Modified: trunk/beacon/src/parser.py
==============================================================================
--- trunk/beacon/src/parser.py  (original)
+++ trunk/beacon/src/parser.py  Tue Apr 25 22:49:01 2006
@@ -92,7 +92,8 @@
         # inside a unicode object.  This logic below is taken from mminfo.
         # Why is this needed?  Something looks seriously broken.
         for key in metadata.keys:
-            metadata[key] = 
str_to_unicode(unicode(metadata[key]).encode('latin-1', 'replace'))
+            if isinstance(metadata[key], unicode):
+                metadata[key] = 
str_to_unicode(unicode(metadata[key]).encode('latin-1', 'replace'))
     elif item._beacon_isdir:
         type = 'dir'
     else:


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to