Ejemplo n.º 1
0
def _get_params():
    # Root and path data are passed as POST data rather than URL args.
    root, path_ = tools.get_params(request.form, 'root', 'path')
    tools.validate_root_or_abort(root)
    tools.validate_path_or_abort(path_)
    return root, path_
Ejemplo n.º 2
0
def _get_params():
    items = tools.get_params(request.form, 'root', 'from_path', 'to_path')
    tools.validate_root_or_abort(items[0])
    tools.validate_path_or_abort(items[1])
    tools.validate_path_or_abort(items[2])
    return items