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)
def get(self): posts = Post.get_latest(3) self.render('index.html', truncate=utils.truncate, posts=posts)
def get(self): posts = Post.get_latest(40) self.render('press.html', datetimeformat=utils.datetimeformat, posts=posts)