def get(self):
topic_id = self.get_argument('topic_id', None)
if not topic_id:
raise HTTPError(404)
topic = yield TopicDocument.get_topic(
topic_id, self.current_user['_id']
)
if not topic or topic['author']['_id'] != self.current_user['_id']:
raise HTTPError(404)
self.render(
'community/template/topic-new.html',
action="edit",
topic=topic
)
评论列表
文章目录