def _model_to_entity_schema(document_class):
  schema = {}
  for name, prop in document_class._properties.iteritems():
    _add_schema_entry(prop.__class__, name, schema)
  return schema
Produce schema from NDB Model class.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/ndb/prospective_search.py/_model_to_entity_schema