def post(self,id): answer = int(self.get_argument('answer',0)) if answer: chooseanswer(id,answer) self.redirect('/m/%s'%id) return who = self.get_argument('who','匿名') t = self.get_argument('text','').replace('\n',r'\n') if t: post_reply(id,who,t) self.redirect('/m/%s'%id)
def post(self, id): answer = int(self.get_argument('answer', 0)) if answer: chooseanswer(id, answer) self.redirect('/m/%s' % id) return who = self.get_argument('who', '匿名') t = self.get_argument('text', '').replace('\n', r'\n') if t: post_reply(id, who, t) self.redirect('/m/%s' % id)
def post(self,id): who = self.get_argument('who','过客') t = self.get_argument('text','') post_reply(id,who,t) self.redirect('/m/%s'%id)
def post(self, id): who = self.get_argument('who', '过客') t = self.get_argument('text', '') post_reply(id, who, t) self.redirect('/m/%s' % id)