Skip to content

Instantly share code, notes, and snippets.

@emilepetrone
Created August 26, 2010 17:24
Show Gist options
  • Save emilepetrone/551815 to your computer and use it in GitHub Desktop.
Save emilepetrone/551815 to your computer and use it in GitHub Desktop.
def get(self):
que = db.Query(models.URL)
url_list = que.fetch(limit=100)
new_list = url_list.reverse()
path = self.request.path
if doRender(self,path):
return
doRender(self,'base/index.html', { 'new_list' : new_list })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment