Allura/allura/model/repository.py
def batch_load(self, cls, query, attrs=None):
        '''
        Load multiple results given a query.

        Optionally takes a list of attribute names to use
        as the cache key.  If not given, uses the keys of
        the given query.
        '''
        if attrs is None:
            attrs = query.keys()
        for result in self._model_query(cls).find(query):
            keys = {a: getattr(result, a) for a in attrs}
            self.set(cls, keys, result)

        Load multiple results given a query.

        Optionally takes a list of attribute names to use
        as the cache key.  If not given, uses the keys of
        the given query.
        
Load multiple results given a query.
Optionally takes a list of attribute names to use
as the cache key.  If not given, uses the keys of
the given query.
Load multiple results given a query . Optionally takes a list of attribute names to use as the cache key . If not given uses the keys of the given query .
def batch_load(self, cls, query, attrs=None):
        if attrs is None:
            attrs = query.keys()
        for result in self._model_query(cls).find(query):
            keys = {a: getattr(result, a) for a in attrs}
            self.set(cls, keys, result)
def batch_load ( self , cls , query , attrs = None ) : if attrs is None : attrs = query . keys ( ) for result in self . _model_query ( cls ) . find ( query ) : keys = { a : getattr ( result , a ) for a in attrs } self . set ( cls , keys , result )
Load multiple results given a query.
Load multiple results given a query .
'''
        Load multiple results given a query.

        Optionally takes a list of attribute names to use
        as the cache key.  If not given, uses the keys of
        the given query.
        '''
self
cls
query
attrs