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"), )
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 )
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
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
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))
def view_func(): api.get_data(api_func) return "OK"
def get_some_data(): return repr(api.get_data(ok))
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 root(): return angular.template('tokens.html', url_for('.static', filename='tokens.js'), url_for('.static', filename='tokens.css'), tokens=api.get_data(list_tokens))
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))