Exemple #1
0
def list_group_pod(id_or_name):
    if id_or_name.isdigit():
        group = Group.get(int(id_or_name))
    else:
        group = Group.get_by_name(id_or_name)
    if not group:
        raise EruAbortException(consts.HTTP_NOT_FOUND, 'Group %s not found' % id_or_name)
    return group.list_pods(g.start, g.limit)
Exemple #2
0
def list_group_pod(id_or_name):
    if id_or_name.isdigit():
        group = Group.get(int(id_or_name))
    else:
        group = Group.get_by_name(id_or_name)
    if not group:
        abort(404, 'Group %s not found' % id_or_name)
    return group.list_pods(g.start, g.limit)