parameters: (self, syncml_response=None)
docstring: Retrieve & generate the syncml message for messages that were deleted
      This message also contains the final tag to let know that the sending
      of modification is over
docstring_summary: Retrieve & generate the syncml message for messages that were deleted
      This message also contains the final tag to let know that the sending
      of modification is over
docstring_tokens: Retrieve & generate the syncml message for messages that were deleted This message also contains the final tag to let know that the sending of modification is over
function: def getDeletedSyncMLData(self, syncml_response=None):
      """
      Retrieve & generate the syncml message for messages that were deleted
      This message also contains the final tag to let know that the sending
      of modification is over
      """
      if not syncml_response:
        syncml_response = self.generateBaseResponse()
  
      # Compare gid between signature & source to know which data were deleted
      deleted_signature_set = self.z_get_syncml_deleted_gid_list(
        signature_path=self.getSearchablePath(),
        source_path=self.getSearchableSourcePath())
  
      syncml_logger.info("\t---> delete signature are %r", len(deleted_signature_set))
      for r in deleted_signature_set:
        syncml_response.addDeleteCommand(gid=r.gid)
        syncml_logger.info("\t\t---> %r", r.gid)
      syncml_response.addFinal()
  
      # Now send the message
      final_activate_kw = {
        'after_method_id' : ("processServerSynchronization",
                             "processClientSynchronization"),
        'priority' :ACTIVITY_PRIORITY + 1,
        'tag' : "%s_delete" %(self.getRelativeUrl(),)
        }
      syncml_logger.info("Sending final message for modificationson on %s",
                         self.getRelativeUrl())
      self.activate(**final_activate_kw).sendMessage(xml=str(syncml_response))
function_tokens: def getDeletedSyncMLData ( self , syncml_response = None ) : if not syncml_response : syncml_response = self . generateBaseResponse ( ) # Compare gid between signature & source to know which data were deleted deleted_signature_set = self . z_get_syncml_deleted_gid_list ( signature_path = self . getSearchablePath ( ) , source_path = self . getSearchableSourcePath ( ) ) syncml_logger . info ( "\t---> delete signature are %r" , len ( deleted_signature_set ) ) for r in deleted_signature_set : syncml_response . addDeleteCommand ( gid = r . gid ) syncml_logger . info ( "\t\t---> %r" , r . gid ) syncml_response . addFinal ( ) # Now send the message final_activate_kw = { 'after_method_id' : ( "processServerSynchronization" , "processClientSynchronization" ) , 'priority' : ACTIVITY_PRIORITY + 1 , 'tag' : "%s_delete" % ( self . getRelativeUrl ( ) , ) } syncml_logger . info ( "Sending final message for modificationson on %s" , self . getRelativeUrl ( ) ) self . activate ( * * final_activate_kw ) . sendMessage ( xml = str ( syncml_response ) )