Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit Text Field in Appengine Datastore Viewer

Does anyone know how edit a field with type 'Text' in the appengine data store viewer in production?

like image 378
aloo Avatar asked Jul 08 '10 18:07

aloo


2 Answers

This is not possible in the Datastore Viewer in the Admin Console.

It can be done in the interactive console, with some code like this:

from google.appengine.ext import db
my_object = db.get('my_object_key')
my_object.my_text_property = 'The text I want to set'
db.put(my_object)

You could also write a handler that does the same.

like image 192
Mark Avatar answered Sep 26 '22 01:09

Mark


Sorry, editing a 'Text' field is not possible. Only a 'String' can be edited.

like image 21
Tom Avatar answered Sep 23 '22 01:09

Tom