def doCancelItem(self, arg): """ Action method. """ t = gateway.transports().get(self.proto, None) if t: t.call('cancel_file_receiving', self.transfer_id)
def doCancelItem(self, arg): """ Action method. """ t = gateway.transports().get(self.proto, None) if t: t.call("cancel_file_receiving", self.transfer_id)
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)
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)