def _get_method(self, request, action, content_type, body):

        # Look up the method
        try:
            if not self.controller:
                meth = getattr(self, action)
            else:
                meth = getattr(self.controller, action)
        except AttributeError:
            if (not self.wsgi_actions or
                    action not in _ROUTES_METHODS + ['action']):
                # Propagate the error
                raise
        else:
            return meth, self.wsgi_extensions.get(action, [])

        if action == 'action':
            # OK, it's an action; figure out which action...
            mtype = _MEDIA_TYPE_MAP.get(content_type)
            action_name = self.action_peek[mtype](body)
        else:
            action_name = action

        # Look up the action method
        return (self.wsgi_actions[action_name],
                self.wsgi_action_extensions.get(action_name, []))
Returns a dictionary representation of `entity`. This will iterate over
dataset/ETHPy150Open openstack/rack/rack/api/wsgi.py/Resource._get_method--crossover with--dataset/ETHPy150Open STIXProject/python-stix/stix/utils/__init__.py/to_dict