Sorry,

I've sent this e-mail after two hours trying to find out, and a few minutes
after I sent this e-mail I found how to use setattr() function.

thanks anyway

On Mon, Jan 24, 2011 at 23:42, Herbert Fischer <[email protected]>wrote:

> 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