There is an earlier thread "updating schema" but I can't figure out
how to add to that thread, so I am making a new post.

I have been attempting to apply the code snippets at
http://code.google.com/appengine/articles/update_schema.html
to update my datastore to add a boolean field named deleteRequested
to default to "False". I am experimenting on the SDK and was able to
make it work when the field "name" is unique, which it is, in the
local datastore. But in the Gae datastore, "name" is not unique, and I
want to use "date" instead, which is unique. But every time I run the
code with "date", it stops -- no, it gets stuck repeating -- after the
second database instance. I have tried using the dates as is, and with
strftime(), as you can see in commented lines in the code excerpt. The
version shown in the excerpt below uses urllib.quote() around the
"next_date" but if I use the raw "date" data, urllib.quote.() gives
the ERROR

    next_url = '/update_datastore?date=%s' % urllib.quote(next_date)
   res = map(safe_map.__getitem__, s)
TypeError: argument 2 to map() must support iteration



http://dpaste.com/18238/

Can somebody show me what is wrong with my code, please?

Brian in Atlanta
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to