def path_dispatch_kwarg(mname, path_default, returns_model):
def _wrapper(self, path=path_default, **kwargs):<EOL><INDENT>prefix, mgr, mgr_path = _resolve_path(path, self.managers)<EOL>result = getattr(mgr, mname)(path=mgr_path, **kwargs)<EOL>if returns_model and prefix:<EOL><INDENT>return _apply_prefix(prefix, result)<EOL><DEDENT>else:<EOL><INDENT>return result<EOL><DEDENT><DEDENT>return _wrapper<EOL>
Parameterized decorator for methods that accept path as a second
argument.