Commit 075f5153 authored by Nicolas Delaby's avatar Nicolas Delaby

"data" attribute is only available on CharacterData objects (DOM Level Core 2)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20203 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba7d5678
......@@ -757,10 +757,11 @@ class ERP5Conduit(XMLSyncUtilsMixin):
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]))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment