It's a typo. I've fixed it and it should go live soon. You may also want to look at the cursors implementation for paging forward:
http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Query_Cursors On Tue, Apr 13, 2010 at 8:29 AM, macgillivary <[email protected]>wrote: > Looking the best practice of paging results, reading > http://code.google.com/appengine/articles/paging.html > there is a code snippet about a little over half way down with > > def txn(): > contributor = Contributor.get_by_key_name(email) > if contributor == None: > contributor = Contributor(key_name=email) > contributor.count += 1 > contributor.put() > return contributor.count > > but in the Contributor class, the property is set as 'counter'. Is > that a typo or am I missing the intent? > > -- > 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]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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.
