def Ancestor(self, ancestor):
    self.__ancestor_pb = _GetCompleteKeyOrError(ancestor)._ToPb()
    return self
Sets an ancestor for this query.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore.py/Query.Ancestor