Пример #1
0
def root():
    return angular.template(
        'slaveloan_root.html',
        url_for('.static', filename='slaveloan_root.js'),
        machine_types=api.get_data(get_machine_classes),
        loan_request_url=url_for("slaveloan.new_loan_request"),
    )
Пример #2
0
def root():
    return angular.template(
        'slaveloan_root.html',
        url_for('.static', filename='slaveloan_root.js'),
        machine_types=api.get_data(get_machine_classes),
        loan_request_url=url_for("slaveloan.new_loan_request"),
    )
Пример #3
0
def root(branch=None):
    return angular.template(
        'clobberer.html',
        url_for('.static', filename='clobberer.js'),
        url_for('.static', filename='clobberer.css'),
        branches=api.get_data(branches),
        selected_branch=branch
    )
Пример #4
0
def v0_get_tree(tree):
    """
    Get the status of a single tree in a format compatible with the old
    treestatus
    """
    tree = api.get_data(get_tree, tree)
    resp = flask.Response(api.dumps(types.JsonTree, tree))
    resp.headers['content-type'] = 'application/json'
    return resp
Пример #5
0
def v0_get_trees():
    """
    Get the status of all trees in a format compatible with the old
    treestatus
    """
    trees = api.get_data(get_trees)
    resp = flask.Response(api.dumps({unicode: types.JsonTree}, trees))
    resp.headers['content-type'] = 'application/json'
    return resp
Пример #6
0
def root():
    return angular.template('badpenny.html',
                            url_for('.static', filename='badpenny.js'),
                            url_for('.static', filename='badpenny.css'),
                            tasks=api.get_data(list_tasks))
Пример #7
0
 def view_func():
     api.get_data(api_func)
     return "OK"
Пример #8
0
 def get_some_data():
     return repr(api.get_data(ok))
Пример #9
0
def index():
    return angular.template('index.html',
                            url_for('.static', filename='treestatus.js'),
                            url_for('.static', filename='treestatus.css'),
                            stack=api.get_data(get_stack),
                            trees=api.get_data(get_trees))
 def get_some_data_notallowed():
     return repr(api.get_data(notallowed))
 def get_some_data():
     return repr(api.get_data(ok))
def root():
    return angular.template('badpenny.html',
                            url_for('.static', filename='badpenny.js'),
                            url_for('.static', filename='badpenny.css'),
                            tasks=api.get_data(list_tasks))
Пример #13
0
 def get_some_data_notallowed():
     return repr(api.get_data(notallowed))
Пример #14
0
def root():
    return angular.template('tokens.html',
                            url_for('.static', filename='tokens.js'),
                            url_for('.static', filename='tokens.css'),
                            tokens=api.get_data(list_tokens))
Пример #15
0
def show_tree_details(tree):
    return angular.template('tree.html',
                            url_for('.static', filename='treestatus.js'),
                            url_for('.static', filename='treestatus.css'),
                            tree=api.get_data(get_tree, tree),
                            logs=api.get_data(get_logs, tree))
Пример #16
0
def root():
    return angular.template('tokens.html',
                            url_for('.static', filename='tokens.js'),
                            url_for('.static', filename='tokens.css'),
                            tokens=api.get_data(list_tokens))
Пример #17
0
 def view_func():
     api.get_data(api_func)
     return "OK"