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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 7 18:28:58 CET 2008


Author: nicolas
Date: Fri Mar  7 18:28:57 2008
New Revision: 19756

URL: http://svn.erp5.org?rev=19756&view=rev
Log:
Update property even if value is empty

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=19756&r1=19755&r2=19756&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py (original)
+++ erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py Fri Mar  7 18:28:57 2008
@@ -753,13 +753,15 @@
     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
-          args[keyword]=data
+        else:
+          data=None
+        args[keyword]=data
         #if args.has_key(keyword):
         #  LOG('newObject',0,'data: %s' % str(args[keyword]))
         if args.has_key(keyword):




More information about the Erp5-report mailing list