Commit 110881e7 authored by Nicolas Delaby's avatar Nicolas Delaby

call subscriber.getObjectFromGid only once


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35812 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 223b8e66
......@@ -1095,13 +1095,14 @@ class XMLSyncUtilsMixin(SyncCode):
data_subnode = self.getDataText(action)
else:
data_subnode = self.getDataSubNode(action)
#LOG('applyActionList, object gid to delete :', 0, subscriber.getObjectFromGid(object_id))
if subscriber.getObjectFromGid(object_id) is not None:
#LOG('applyActionList, object gid to delete :', INFO, subscriber.getObjectFromGid(object_id))
document = subscriber.getObjectFromGid(object_id)
if document is not None:
#if the object exist:
conduit.deleteNode(
xml=data_subnode,
object=destination,
object_id=subscriber.getObjectFromGid(object_id).getId())
object_id=document.getId())
subscriber.delSignature(gid)
xml_confirmation_list.append(self.SyncMLConfirmation(
cmd_id=cmd_id,
......
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