def doDHTRemoveMyIncoming(self, arg): """ Action method. """ if arg: key = self.my_id + ':incoming' + str(self.IncomingPosition) dht_service.delete_key(key)
def doDHTRemoveMyIncoming(self, *args, **kwargs): """ Action method. """ if args and args[0]: key = self.my_id + ':incoming' + str(self.IncomingPosition) dht_service.delete_key(key)
def doDHTEraseKey(self, *args, **kwargs): """ Action method. """ d = dht_service.delete_key(self.key) d.addCallback(self._dht_erase_result) d.addErrback(lambda x: self.automat('dht-erase-failed'))
def do_erase(self): if _Debug: lg.out(_DebugLevel, 'dht_relations.do_erase %s' % self._index) d = dht_service.delete_key(make_dht_key(self.customer_idurl, self._index, self._prefix)) d.addCallback(self.do_report_success) d.addErrback(self.do_report_failed) return 3
def doDHTEraseKey(self, arg): """ Action method. """ d = dht_service.delete_key(self.key) d.addCallback(self._dht_erase_result) d.addErrback(lambda x: self.automat('dht-erase-failed'))
def do_erase(self): if _Debug: lg.out(_DebugLevel, 'dht_relations.do_erase %s:%s' % ( self.customer_id, self._index, )) target_dht_key = dht_service.make_key( key=self.customer_id, index=self._index, prefix=self._prefix, ) d = dht_service.delete_key(target_dht_key) d.addCallback(self.do_report_success) d.addErrback(self.do_report_failed) return 3