Commit ed9ae1c9 authored by Nicolas Delaby's avatar Nicolas Delaby

Remove old argument, hide LOG

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16400 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 31a7c2ff
...@@ -62,18 +62,18 @@ class VCardConduit(ERP5Conduit, SyncCode): ...@@ -62,18 +62,18 @@ class VCardConduit(ERP5Conduit, SyncCode):
add a new person corresponding to the vcard add a new person corresponding to the vcard
if the person already exist, she's updated if the person already exist, she's updated
""" """
LOG('VCardConduit',0,'addNode, object=%s, object_id=%s, sub_object:%s, \ #LOG('VCardConduit',0,'addNode, object=%s, object_id=%s, sub_object:%s, \
xml:\n%s' % (str(object), str(object_id), str(sub_object), xml)) #xml:\n%s' % (str(object), str(object_id), str(sub_object), xml))
if not isinstance(xml, str): if not isinstance(xml, str):
xml = self.nodeToString(xml) xml = self.nodeToString(xml)
portal_type = 'Person' #the VCard can just use Person portal_type = 'Person' #the VCard can just use Person
if sub_object is None: if sub_object is None:
new_object = ERP5Conduit.constructContent(self, object, object_id , new_object = ERP5Conduit.constructContent(self, object, object_id,
None, portal_type) portal_type)
else: #if the object exist, it juste must be update else: #if the object exist, it juste must be update
new_object=sub_object new_object=sub_object
LOG('addNode', 0, 'new_object:%s, sub_object:%s' % (new_object, sub_object)) #LOG('addNode', 0, 'new_object:%s, sub_object:%s' % (new_object, sub_object))
self.updateNode(xml=xml, self.updateNode(xml=xml,
object=new_object, object=new_object,
force=force, force=force,
......
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