On Jul 14, 1:29 pm, BonguN <neetha1...@gmail.com> wrote:
> Hi,
>
> I am coding in python. My question is:
>
> If I have a class say Course() and its present in the datastore with
> its entities say name, email etc and I want to:
> a.) Add a new entity to Course() , for example firstname.
> b.) I want firstname to be applied to the already existing records, so
> if Course had 20 records, then all 20 records should get updated with
> firstname.
>
> Could someone please let me know how would I do this?

First of all, your terminology is a bit off; what you want to add is a
property, not an entity.

You need to first add the property to the class definition for the
kind, then get and re-put every entity with the data you want to add.
(You can also leave the existing entities without the new property, if
you don't need the ability to search for them in the index on that
property; the property will be missing from these entities, not
automatically set to None or a default value).

-- 
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