def require_objs_permissions_for_url(url, perm_names, permittee_func,
                                     target_func, methods=["GET", "POST"]):
    PermissionMiddleware.add_required_url_permissions(
        url, perm_names, permittee_func, target_func, methods)
Convenience wrapper around L{PermissionMiddleware}.
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/permissions/shortcuts.py/require_objs_permissions_for_url