データストア、put() とかした後のメモ
from google.appengine.ext import db class Sksk(db.Model): name = db.StringProperty() insert_date = db.DateTimeProperty() def do_add(self, name=None): if name is None : return False # validate 略 self.name = name result = self.put() print type(result) print dir(result) print result return True # type() # <class 'google.appengine.api.datastore_types.Key'> # dir() # ['ToTagUri', 'ToXml', '_FromPb', '_Key__reference', '_ToPb', '__class__', '__cmp__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', 'app', 'app_id_namespace', 'entity_group', 'from_path', 'has_id_or_name', 'id', 'id_or_name', 'kind', 'name', 'namespace', 'parent', 'to_path'] # 結果 # ahFsb2xxxC1hZXAtcxxxcGxlMnIxxxITY29tcGxxxWVzX2NvbXxxxmllcxxxDA