예제 #1
0
 def doCancelItem(self, arg):
     """
     Action method.
     """
     t = gateway.transports().get(self.proto, None)
     if t:
         t.call('cancel_file_receiving', self.transfer_id)
예제 #2
0
 def doCancelItem(self, arg):
     """
     Action method.
     """
     t = gateway.transports().get(self.proto, None)
     if t:
         t.call("cancel_file_receiving", self.transfer_id)
예제 #3
0
 def doCancelItems(self, arg):
     """
     Action method.
     """
     for i in self.items:
         t = gateway.transports().get(i.proto, None)
         if t:
             if i.transfer_id:
                 t.call('cancel_file_sending', i.transfer_id)
             t.call('cancel_outbox_file', i.host, self.filename)
예제 #4
0
 def doCancelItems(self, arg):
     """
     Action method.
     """
     for i in self.items:
         t = gateway.transports().get(i.proto, None)
         if t:
             if i.transfer_id:
                 t.call("cancel_file_sending", i.transfer_id)
             t.call("cancel_outbox_file", i.host, self.filename)