Author: dmeyer
Date: Fri Mar 10 18:41:35 2006
New Revision: 1265

Modified:
   trunk/base/src/base/libxml2.py

Log:
handle empty attributes

Modified: trunk/base/src/base/libxml2.py
==============================================================================
--- trunk/base/src/base/libxml2.py      (original)
+++ trunk/base/src/base/libxml2.py      Fri Mar 10 18:41:35 2006
@@ -202,7 +202,10 @@
 
 
     def getattr(self, name):
-        return unicode(libxml2mod.xmlGetProp(self._o, name), 'utf-8')
+        value = libxml2mod.xmlGetProp(self._o, name)
+        if value == None:
+            return value
+        return unicode(value, 'utf-8')
 
 
     def setattr(self, name, value):


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to