appengine

How to implement "autoincrement" on Google AppEngine

I have to label something in a "strong monotone increasing" fashion. Be it Invoice Numbers, sipping label numbers or the like. A number MUST NOT BE used twice Every number SHOULD BE used when exactly all smaller numbers have been used (no holes). Fancy way of saying: I need to count 1,2,3,4 ... The number Space I have available are t...

Pagination and Multiple relational entity indexes with AppEngine

This is a general question on doing pagination with models containing multiple entity indexes. This is easier with an example so let us consider the example that Brett Slatkin provided in his video (http://www.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html). You have your Message model (I have ignored the MessageIn...

Python facebook sdk offline_access

I am using facebook python sdk with app engine. I am able to access the user information when the user is online. I have already included <fb:login-button perms="read_stream,publish_stream,offline_access"></fb:login-button> in my index page. User has also allowed for offline_access. However, I am having problem accessing and us...

Custom django template tag issue on AppEngine

So I have beating my head against the wall on this. I feel like I have interpretted the docs and examples I found, but this just won't seem to go away. Here is the tag code: from google.appengine.ext import webapp register = webapp.template.create_template_register() def test_tag(): return "TEST!" register.simple_tag(test_tag...

AppEngine -> "AttributeError: 'unicode' object has no attribute 'has_key'" when using blobstore

There have been a number of other questions on AttributeErrors here, but I've read through them and am still not sure what's causing the type mismatch in my specific case. Thanks in advance for any thoughts on this. My model: class Object(db.Model): notes = db.StringProperty(multiline=False) other_item = db.ReferenceProperty(Other...

Refresh ListBox After Button clicked

Basically I have a page with a button and listbox on it. When the button is clicked, I use a ClickHandler to add another item to the listbox. However, the listbox is not refreshed unless I use the browser refresh button. Is there a way to do this programmatically without refreshing the entire Window? Thank you ...