Copy an entity in Google App Engine datastore in Python

Posted by Gordon Worley on Stack Overflow See other posts from Stack Overflow or by Gordon Worley
Published on 2010-04-22T01:44:21Z Indexed on 2010/04/22 1:53 UTC
Read the original article Hit count: 230

In a Python Google App Engine app I'm writing, I have an entity stored in the datastore that I need to retrieve, make an exact copy of it (with the exception of the key), and then put this entity back in.

How should I do this? In particular, are there any caveats or tricks I need to be aware of when doing this so that I get a copy of the sort I expect and not something else.

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about python