Commit 75e8612b authored by Nicolas Delaby's avatar Nicolas Delaby

object can be None

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14685 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6096a336
...@@ -390,7 +390,7 @@ class XMLSyncUtilsMixin(SyncCode): ...@@ -390,7 +390,7 @@ class XMLSyncUtilsMixin(SyncCode):
def getCred(self, xml): def getCred(self, xml):
""" """
return the credential information : type, format and data return the credential information : type, format and data
""" """
format='' format=''
type='' type=''
data='' data=''
...@@ -878,7 +878,8 @@ class XMLSyncUtilsMixin(SyncCode): ...@@ -878,7 +878,8 @@ class XMLSyncUtilsMixin(SyncCode):
# Retrieve directly the object from addNode # Retrieve directly the object from addNode
object = add_data['object'] object = add_data['object']
LOG('XMLSyncUtils, in ADD add_data',0,add_data) LOG('XMLSyncUtils, in ADD add_data',0,add_data)
signature.setPath(object.getPhysicalPath()) if object is not None:
signature.setPath(object.getPhysicalPath())
LOG('applyActionList',0,'object after add: %s' % repr(object)) LOG('applyActionList',0,'object after add: %s' % repr(object))
else: else:
#Object was retrieve but need to be updated without recreated #Object was retrieve but need to be updated without recreated
......
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