parameters: (self, xml=None, object=None, previous_xml=None, # pylint: disable=redefined-builtin
        object_id=None, sub_object=None, force=0, simulate=0, **kw)
return_statement: return {'conflict_list':[], 'object': new_object}
docstring: add a new person corresponding to the vcard
      if the person already exist, she's updated
docstring_summary: add a new person corresponding to the vcard
      if the person already exist, she's updated
docstring_tokens: add a new person corresponding to the vcard if the person already exist she s updated
function: def addNode(self, xml=None, object=None, previous_xml=None, # pylint: disable=redefined-builtin
        object_id=None, sub_object=None, force=0, simulate=0, **kw):
      """
      add a new person corresponding to the vcard
      if the person already exist, she's updated
      """
      #LOG('VCardConduit',0,'addNode, object=%s, object_id=%s, sub_object:%s, \
          #xml:\n%s' % (str(object), str(object_id), str(sub_object), xml))
      if not isinstance(xml, str):
        xml = self.nodeToString(xml)
      portal_type = 'Person' #the VCard can just use Person
      if sub_object is None:
  
        new_object, _, _ = ERP5Conduit.constructContent(self, object, object_id, portal_type)
      else: #if the object exist, it juste must be update
        new_object = sub_object
      #LOG('addNode', 0, 'new_object:%s, sub_object:%s' % (new_object, sub_object))
      self.updateNode(xml=xml,
                      object=new_object,
                      force=force,
                      simulate=simulate,
                      **kw)
      #in a first time, conflict are not used
      return {'conflict_list':[], 'object': new_object}
function_tokens: def addNode ( self , xml = None , object = None , previous_xml = None , # pylint: disable=redefined-builtin object_id = None , sub_object = None , force = 0 , simulate = 0 , * * kw ) : #LOG('VCardConduit',0,'addNode, object=%s, object_id=%s, sub_object:%s, \ #xml:\n%s' % (str(object), str(object_id), str(sub_object), xml)) if not isinstance ( xml , str ) : xml = self . nodeToString ( xml ) portal_type = 'Person' #the VCard can just use Person if sub_object is None : new_object , _ , _ = ERP5Conduit . constructContent ( self , object , object_id , portal_type ) else : #if the object exist, it juste must be update new_object = sub_object #LOG('addNode', 0, 'new_object:%s, sub_object:%s' % (new_object, sub_object)) self . updateNode ( xml = xml , object = new_object , force = force , simulate = simulate , * * kw ) #in a first time, conflict are not used return { 'conflict_list' : [ ] , 'object' : new_object }