Here's my dilemma: I've got to run through a list of entities checking if some repeated property--I'm using NDB--is empty. If it is, then I assign a value to it and put(). Otherwise I skip the entity. I'm trying to do all of this in the remote login shell that comes with google app engine.
I've tried just iterating over Model.query(), doing the conditional, and writing the value, but when I start to write the process gets hung up. When I finally Ctrl-C, it pops out an error saying, "assert response.set_status_size() == len(server_keys); AssertionError". I'm assuming this has something to do with the size of the entities it's trying to retrieve. Anyone know what's up? Here's my current code:
>>> for entity in Model.query():
... if not len(entity.references):
... entity.references = somevalue
... continue
... print 'skipped'
I would just filter the query instead of using the if statement but I'm not sure how to filter a query by the length of a repeated property.