def _GetPropertyValue(entity, property):
 if (property in datastore_types._SPECIAL_PROPERTIES):
  if (property == datastore_types._UNAPPLIED_LOG_TIMESTAMP_SPECIAL_PROPERTY):
   raise KeyError(property)
  assert (property == datastore_types.KEY_SPECIAL_PROPERTY)
  return entity.key()
 else:
  return entity[property]

def _GetPropertyValue ( entity , property ) : if ( property in datastore_types . _SPECIAL_PROPERTIES ) : if ( property == datastore_types . _UNAPPLIED_LOG_TIMESTAMP_SPECIAL_PROPERTY ) : raise KeyError ( property ) assert ( property == datastore_types . KEY_SPECIAL_PROPERTY ) return entity . key ( ) else : return entity [ property ]
returns an entitys value for a given property name .