def get(self): cur_user = self.cur_user() self.echo('notifications.html', { 'title': "站内提醒", 'topic_objs': Commomkvdb.get_notifications(cur_user['name'], cur_user.get('notic', '')), 'newest_node': Node.get_newest(), 'recent_node': Node.get_recent_node(), 'recent_topic_objs': Commomkvdb.get_comment_topic_by_keys('recent-topic-home'), 'comment_topic_objs': Commomkvdb.get_comment_topic_by_keys('recent-comment-topic-home'), }, layout='_layout.html')