def reject_request(self, user, block_title): gDefier_model.del_request_challenge(self, user, block_title) self.redirect('/gDefier/block?title=' + block_title)
def accept_request(self, user, block_title): gDefier_model.del_request_challenge(self, user, block_title) # Create a challenge gDefier_model.create_defy(self, user, block_title) self.redirect('/gDefier/block?title=' + block_title)