Exemple #1
0
 def get(self):
     self.header['Content-Type'] = "application/atom+xml"
     self.echo(
         'index.xml', {
             'posts':
             KeyStrValue.get_topic_objs('recent-topic-home')[:FEED_NUM],
             'site_updated': int(time()),
         })
Exemple #2
0
 def get(self):
     self.echo('home.html', {
         'title': "首页",
         'topic_objs': KeyStrValue.get_topic_objs('recent-topic-home'),
         'site_counts': Counter.get_site_counts(),
         'newest_node': Node.get_newest(),
         'recent_node': Node.get_recent_node(),
         'hot_node': Node.get_hot_node(),
         'reply_topic_objs': KeyStrValue.get_topic_key_title('recent-reply-topic'),
     }, layout='_layout.html')
Exemple #3
0
 def get(self):
     self.header['Content-Type'] = "application/atom+xml"
     self.echo('index.xml', {
                 'posts':KeyStrValue.get_topic_objs('recent-topic-home')[:FEED_NUM],
                 'site_updated':int(time()),
     })