def get(self): logging.error('ZAWEEBO!') stuff=[] for salmon in Entry.gql('ORDER BY updated DESC').fetch(10): text = cgi.escape(salmon.content if salmon.content else '(no content)') text = text[0:30] if len(text) > 29: text = text + "..." stuff.append({'updated': str(salmon.updated), 'content': text, 'link': salmon.link, 'author_name': salmon.author_name, 'author_uri': salmon.author_uri, 'in_reply_to': salmon.in_reply_to}) self.response.out.write(template.render('latest.html',dict(salmon=stuff)))
def get(self): logging.error('ZAWEEBO!') stuff = [] for salmon in Entry.gql('ORDER BY updated DESC').fetch(10): text = cgi.escape( salmon.content if salmon.content else '(no content)') text = text[0:30] if len(text) > 29: text = text + "..." stuff.append({ 'updated': str(salmon.updated), 'content': text, 'link': salmon.link, 'author_name': salmon.author_name, 'author_uri': salmon.author_uri, 'in_reply_to': salmon.in_reply_to }) self.response.out.write( template.render('latest.html', dict(salmon=stuff)))