Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #5
0
def poll():
    # force start of all plugins
    for m in modules.keys():
        modules[m].delay()

    return _make_json_response({'OK': True})
Пример #6
0
def poll():
    # force start of all plugins
    for m in modules.keys():
        modules[m].delay()

    return _make_json_response({'OK': True})