Exemple #1
0
def post_map(args):
    src_node = os.path.basename(os.path.dirname(request.path)).capitalize()
    dst_node = os.path.basename(request.path).capitalize()
    return Handler.post_map(args, src_node, dst_node)
Exemple #2
0
def get_summary(args):
    node_type = basename(request.path).capitalize()
    return Handler.get_summary(args, node_type)
Exemple #3
0
def get_nodes(args):
    parent = basename(dirname(request.path)).capitalize()
    child = basename(request.path).capitalize()
    return Handler.get_nodes(child, parent, args) 
Exemple #4
0
def post_rank(args):
    node = os.path.basename(request.path).capitalize()
    return Handler.post_rank(args, node)
Exemple #5
0
def get_community(args):
    node = basename(request.path).capitalize()
    if "id" in args:
        return Handler.get_node(args, node)
    else:
        return Handler.get_nodes(node, None, args)
Exemple #6
0
def get_community(args):
    node = basename(request.path).capitalize()
    if "id" in args:
        return Handler.get_node(args, node) 
    else:
        return Handler.get_nodes(node, None, args) 
Exemple #7
0
def post_user(args):
    return Handler.post_user(args)
Exemple #8
0
def post_login(args):
    return Handler.post_login(args)
Exemple #9
0
def get_summary(args):
    node_type = basename(request.path).capitalize()
    return Handler.get_summary(args, node_type)
Exemple #10
0
def api_index():
    return Handler.index()
Exemple #11
0
def post_map(args):
    src_node = os.path.basename(os.path.dirname(request.path)).capitalize()
    dst_node = os.path.basename(request.path).capitalize()
    return Handler.post_map(args, src_node, dst_node)
Exemple #12
0
def post_rank(args):
    node = os.path.basename(request.path).capitalize()
    return Handler.post_rank(args, node)
Exemple #13
0
def get_nodes(args):
    parent = basename(dirname(request.path)).capitalize()
    child = basename(request.path).capitalize()
    return Handler.get_nodes(child, parent, args)
Exemple #14
0
def api_index():
    return Handler.index()
Exemple #15
0
def post_login(args):
    return Handler.post_login(args)
Exemple #16
0
def post_user(args):
    return Handler.post_user(args)
Exemple #17
0
def post_issue():
    errors, data = Args.parse_post_issue(request.form)
    if errors:
        return jsonify(success=False, errors=errors)
    return Handler.post_issue(data)
Exemple #18
0
def get_node(args):
    node = basename(request.path).capitalize()
    return Handler.get_node(args, node) 
Exemple #19
0
def get_node(args):
    node = basename(request.path).capitalize()
    return Handler.get_node(args, node)