Edit Text Field in Appengine Datastore Viewer
Does anyone know how edit a fie开发者_开发百科ld with type 'Text' in the appengine data store viewer in production?
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.
Sorry, editing a 'Text' field is not possible. Only a 'String' can be edited.
精彩评论