Пример #1
0
 def doReportCancelItems(self, arg):
     """
     Action method.
     """
     for item in self.results:
         stats.count_outbox(self.remote_idurl, item.proto, "failed", 0)
         callback.run_finish_file_sending_callbacks(self, item, "failed", 0, self.error_message)
Пример #2
0
 def doReportCancelItems(self, arg):
     """
     Action method.
     """
     for item in self.results:
         stats.count_outbox(self.remote_idurl, item.proto, 'failed', 0)
         callback.run_finish_file_sending_callbacks(self, item, 'failed', 0,
                                                    self.error_message)
Пример #3
0
 def doReportItem(self, arg):
     """
     Action method.
     """
     assert self.popped_item
     stats.count_outbox(self.remote_idurl, self.popped_item.proto,
                        self.popped_item.status,
                        self.popped_item.bytes_sent)
     callback.run_finish_file_sending_callbacks(
         self, self.popped_item, self.popped_item.status,
         self.popped_item.bytes_sent, self.popped_item.error_message)
     self.popped_item = None
Пример #4
0
 def doReportItem(self, arg):
     """
     Action method.
     """
     assert self.popped_item
     stats.count_outbox(
         self.remote_idurl, self.popped_item.proto, self.popped_item.status, self.popped_item.bytes_sent
     )
     callback.run_finish_file_sending_callbacks(
         self, self.popped_item, self.popped_item.status, self.popped_item.bytes_sent, self.popped_item.error_message
     )
     self.popped_item = None