def dispatch(self, obj, action, *args, **kwargs):
        """Find action-specific method on self and call it."""
        try:
            method = getattr(obj, action)
        except __HOLE__:
            method = getattr(obj, 'default')

        return method(*args, **kwargs)
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/common/wsgi.py/Resource.dispatch