def delegate_manager(method):
    @functools.wraps(method)
    def wrapped(self, *args, **kwargs):
        if self._base_manager:
            return getattr(self._base_manager, method.__name__)(*args, **kwargs)
        return method(self, *args, **kwargs)
    return wrapped
Sets permissions for vhost via rabbitmqctl set_permissions
dataset/ETHPy150Open django-mptt/django-mptt/mptt/managers.py/delegate_manager--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/rabbitmq.py/set_permissions