Exemple #1
0
def queue():
    queue = PYLOAD.getQueue()

    queue.sort(key=operator.attrgetter("order"))

    return render_to_response('queue.html', {
        'content': queue,
        'target': 1
    }, [pre_processor])
Exemple #2
0
def packages():
    print "/json/packages"
    try:
        data = PYLOAD.getQueue()

        for package in data:
            package['links'] = []
            for file in PYLOAD.get_package_files(package['id']):
                package['links'].append(PYLOAD.get_file_info(file))

        return data

    except Exception:
        return HTTPError()
Exemple #3
0
def packages():
    print "/json/packages"
    try:
        data = PYLOAD.getQueue()

        for package in data:
            package['links'] = []
            for file in PYLOAD.get_package_files(package['id']):
                package['links'].append(PYLOAD.get_file_info(file))

        return data

    except Exception:
        return HTTPError()
Exemple #4
0
def queue():
    queue = PYLOAD.getQueue()

    queue.sort(key=attrgetter("order"))

    return render_to_response('queue.html', {'content': queue, 'target': 1}, [pre_processor])