def query(self, query):
    '''Returns an iterable of objects matching criteria expressed in `query`
    FSDatastore.query queries all the `.obj` files within the directory
    specified by the query.key.

    Args:
      query: Query object describing the objects to return.

    Raturns:
      Cursor with all objects matching criteria
    '''
    path = self.path(query.key)

    if os.path.exists(path):
      filenames = os.listdir(path)
      filenames = list(set(filenames) - set(self.ignore_list))
      filenames = map(lambda f: os.path.join(path, f), filenames)
      iterable = self._read_object_gen(filenames)
    else:
      iterable = list()

    return query(iterable)
def query ( self , query ) : path = self . path ( query . key ) if os . path . exists ( path ) : filenames = os . listdir ( path ) filenames = list ( set ( filenames ) - set ( self . ignore_list ) ) filenames = map ( lambda f : os . path . join ( path , f ) , filenames ) iterable = self . _read_object_gen ( filenames ) else : iterable = list ( ) return query ( iterable )
Returns an iterable of objects matching criteria expressed in `query`
    FSDatastore.query queries all the `.obj` files within the directory
    specified by the query.key.

    Args:
      query: Query object describing the objects to return.

    Raturns:
      Cursor with all objects matching criteria