[Erp5-report] r20203 - /erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 28 18:56:23 CET 2008


Author: nicolas
Date: Fri Mar 28 18:56:23 2008
New Revision: 20203

URL: http://svn.erp5.org?rev=20203&view=rev
Log:
"data" attribute is only available on CharacterData objects (DOM Level Core 2)

Modified:
    erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py

Modified: erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py?rev=20203&r1=20202&r2=20203&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py (original)
+++ erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py Fri Mar 28 18:56:23 2008
@@ -757,10 +757,11 @@
         keyword_type = self.getPropertyType(subnode)
         # This is the case where the property is a list
         keyword = str(subnode.nodeName)
-        if len(subnode.childNodes) > 0: # We check that this tag is not empty
-          data = subnode.childNodes[0].data
-        else:
-          data = None
+        data = None
+        while subnode.hasChildNodes(): # We check that this tag is not empty
+          subnode = subnode.firstChild
+          if subnode.nodeType == subnode.TEXT_NODE:
+            data = subnode.data
         args[keyword] = data
         #if args.has_key(keyword):
         #  LOG('newObject',0,'data: %s' % str(args[keyword]))




More information about the Erp5-report mailing list