pgcontents/hybridmanager.py
def path_dispatch_kwarg(mname, path_default, returns_model):
    """
    Parameterized decorator for methods that accept path as a second
    argument.
    """
    def _wrapper(self, path=path_default, **kwargs):
        prefix, mgr, mgr_path = _resolve_path(path, self.managers)
        result = getattr(mgr, mname)(path=mgr_path, **kwargs)
        if returns_model and prefix:
            return _apply_prefix(prefix, result)
        else:
            return result
    return _wrapper
def path_dispatch_kwarg(mname, path_default, returns_model):
    def _wrapper(self, path=path_default, **kwargs):
        prefix, mgr, mgr_path = _resolve_path(path, self.managers)
        result = getattr(mgr, mname)(path=mgr_path, **kwargs)
        if returns_model and prefix:
            return _apply_prefix(prefix, result)
        else:
            return result
    return _wrapper
def path_dispatch_kwarg ( mname , path_default , returns_model ) : def _wrapper ( self , path = path_default , * * kwargs ) : prefix , mgr , mgr_path = _resolve_path ( path , self . managers ) result = getattr ( mgr , mname ) ( path = mgr_path , * * kwargs ) if returns_model and prefix : return _apply_prefix ( prefix , result ) else : return result return _wrapper
Parameterized decorator for methods that accept path as a second
    argument.
Parameterized decorator for methods that accept path as a second argument .