def accept_challenge(self, srcuser_id): """ Decline a challenge previously issued by the srcuser """ # Delete the accepted challenge and return the associated preferences return ChallengeModel.del_relation(srcuser_id, self.id())
def decline_challenge(self, srcuser_id): """ Decline a challenge previously issued by the srcuser """ ChallengeModel.del_relation(srcuser_id, self.id())
def retract_challenge(self, destuser_id): """ Retract a challenge previously issued to the destuser """ ChallengeModel.del_relation(self.id(), destuser_id)