Monday, November 9, 2009

App engine pagination cursor

this is the simple idea on how to create cursor ( bookmark ) for google app engine for pagination.

in reference to:

"query = MyModel.all()     results = query.fetch(10)     cursor = query.cursor() for the next query, you can use the cursor:     query = MyModel.all().with_cursor(cursor)     results = query.fetch(10)"
- db.Query and cursor - Google App Engine | Google Groups (view on Google Sidewiki)

No comments: