def post(self): self.response.headers.add_header('Access-Control-Allow-Origin', '*') self.response.headers['Content-Type'] = 'application/json' data = json.loads(self.request.body) id = data['urlkey'] email = get_user_email() temp = models.decVote(id, email) result = {} result['decced'] = temp self.response.out.write(json.dumps(result))
def post(self): self.response.headers.add_header('Access-Control-Allow-Origin', '*') self.response.headers['Content-Type'] = 'application/json' data = json.loads(self.request.body) id = data['urlkey'] email = get_user_email() temp = models.decVote(id,email) result = {} result['decced'] = temp self.response.out.write(json.dumps(result))
def post(self): id = self.request.get("id") email = get_user_email() models.decVote(id, email) self.redirect("/ReviewNewQuestions")
def post(self): id = self.request.get("id") email = get_user_email() models.decVote(id,email) self.redirect("/ReviewNewQuestions")