I'm storing the keys as a string (not the actual entities themselves).

Am I understanding you correctly with the following?

old_keys = [str(key1), str(key2),str(key3)]
new_keys = [str(db.Key(i)) for i in old_keys]





On Aug 4, 5:32 pm, "Greg Darke (Google)" <darke+goo...@google.com>
wrote:
> On 5 August 2011 10:13, johnP <j...@thinkwave.com> wrote:
>
> > can you clarify: "You need to persist re-read the Entities and persist
> > them as keys. "
>
> If your entities are stored as a String, or a list of strings, you
> will need to read the entities, and change their type to be either a
> Key (or reference property) or a list of Keys and then perform a Put
> to store them back in your datastore.
>
> If datastore keys are stored as strings, the migration tool will not
> be able to update them during the migration.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to