Commit 3f1db3f4 authored by Nicolas Delaby's avatar Nicolas Delaby

Update object when without recreated

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14445 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 54acbffd
...@@ -948,8 +948,16 @@ class XMLSyncUtilsMixin(SyncCode): ...@@ -948,8 +948,16 @@ 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())
LOG('applyActionList',0,'object after add: %s' % repr(object)) LOG('applyActionList',0,'object after add: %s' % repr(object))
else:
#Object was retrieve but need to be updated without recreated
#usefull when an object is only deleted by workflow.
object_id = domain.generateNewIdWithGenerator(object=destination_path,gid=object_gid)
add_data = conduit.addNode(xml=data_subnode,
object=destination_path,
object_id=object_id,
sub_object=object)
conflict_list += add_data['conflict_list']
if object is not None: if object is not None:
LOG('SyncModif',0,'addNode, found the object') LOG('SyncModif',0,'addNode, found the object')
#mapping = getattr(object,domain.getXMLMapping(),None) #mapping = getattr(object,domain.getXMLMapping(),None)
......
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