Exemple #1
0
 def get(self):
     from datetime import datetime
     posts = Post.get_latest()
     config = dict(host=configuration.HOST_NAME,
         subtitle="Press Releases",
         title=configuration.APPLICATION_TITLE,
         developer_url=configuration.DEVELOPER_URL,
         developer_name=configuration.DEVELOPER_NAME)
     self.set_header("Content-Type", "application/atom+xml")
     self.render('feeds/atom.xml', posts=posts, datetimeformat=utils.datetimeformat, **config)
Exemple #2
0
 def get(self):
     posts = Post.get_latest(3)
     self.render('index.html', truncate=utils.truncate, posts=posts)
Exemple #3
0
 def get(self):
     posts = Post.get_latest(40)
     self.render('press.html', datetimeformat=utils.datetimeformat, posts=posts)