'Detailed/Summary view of a list of pools seen by scheduler.'

def pools(self, request, pools, detail):

    if detail:
        plist = [self.detail(request, pool)['pool'] for pool in pools]
    else:
        plist = [self.summary(request, pool)['pool'] for pool in pools]
    pools_dict = dict(pools=plist)
    return pools_dict
