def __init__(self, query_string, *args, **kwds):
    from google.appengine.ext import gql
    app = kwds.pop('_app', None)

    self._proto_query = gql.GQL(query_string, _app=app)
    if self._proto_query._entity is not None:
      model_class = class_for_kind(self._proto_query._entity)
    else:
      model_class = None
    super(GqlQuery, self).__init__(model_class,
                                   keys_only=self._proto_query._keys_only)

    if model_class is not None:
      for property, unused in (self._proto_query.filters().keys() +
                               self._proto_query.orderings()):
        if property in model_class._unindexed_properties:
          raise PropertyError('Property \'%s\' is not indexed' % property)

    self.bind(*args, **kwds)
Constructor.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/GqlQuery.__init__--crossover with--dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/contrib/mongoengine/filters.py/BaseMongoEngineFilter.__init__