Hi,
In article http://code.google.com/appengine/articles/paging.html there
is code sample for "Paging without a property":
def get(self):
next = None
bookmark = self.request.get("__key__")
if bookmark:
suggestions = Suggestion.all().order("__key__").filter('__key__
>=', bookmark).fetch(PAGESIZE+1)
else:
suggestions = Suggestion.all().order("-when").fetch(PAGESIZE+1)
(continues..)
I believe the order("-when") should be order("__key__")?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---