Hi,

I need to modify a property value by using a property name in string format
as exemplified in the line marked with >>> below:

import model
task = model.Task.get_by_id(1)
property = 'description'
new_value = 'hakuna matata'
>>> task[property] = new_value
task.put()

How this can be done?

thanks!

Herbert

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