Exemplo n.º 1
0
def load(name):
    """
    Foreground load data via a single plugin
    """
    if name in modules.keys():
        modules[name].process()
        data = modules[name].load(str(name))
        print json.dumps(data, indent=2)
Exemplo n.º 2
0
def get():
    data = {}

    # load each module's data from memcache
    for m in modules.keys():
        data[m] = modules[m].load(m)

    # response with formatted json
    return _make_json_response(data)
Exemplo n.º 3
0
def get():
    data = {}

    # load each module's data from memcache
    for m in modules.keys():
        data[m] = modules[m].load(m)

    # response with formatted json
    return _make_json_response(data)
Exemplo n.º 4
0
def get(name):
    """
    Inspect the data in memcache
    """
    data = {}
    for m in modules.keys():
        data[m] = modules[m].load(m)

    print json.dumps(data, indent=2)
Exemplo n.º 5
0
def poll():
    # force start of all plugins
    for m in modules.keys():
        modules[m].delay()

    return _make_json_response({'OK': True})
Exemplo n.º 6
0
def poll():
    # force start of all plugins
    for m in modules.keys():
        modules[m].delay()

    return _make_json_response({'OK': True})