def post(self): key = self.request.get("key") DiscussionFollow.set_read(key) return self.json({"result": True})
def post(self): self.json({"mention": Mention.check_mentin(self.user), "follow": DiscussionFollow.check_follow(self.user)})
def get(self): self.template_value["follows"] = DiscussionFollow.get_dis_by_user(self.user) self.render("follow.html")
def post(self): dis = self.request.get("dis") DiscussionFollow.new(dis)