Commit 5965fb9d authored by Nicolas Delaby's avatar Nicolas Delaby

Update property even if value is empty

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19756 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4bb86532
......@@ -753,12 +753,14 @@ class ERP5Conduit(XMLSyncUtilsMixin):
if xml.nodeName.find('xupdate')>= 0:
xml = self.getElementNodeList(xml)[0]
for subnode in self.getElementNodeList(xml):
if not(subnode.nodeName in self.NOT_EDITABLE_PROPERTY):
if subnode.nodeName not in self.NOT_EDITABLE_PROPERTY:
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
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