def dispatch(self):
        """Process a URI and invoke the appropriate handler."""
        page = self.dispatchre.search(self.script)
        try:
            nextHandler = get_func(self.dispatches[page.group(1)])
        except KeyError:
            nextHandler = get_func(self.dispatches['default'])
        return nextHandler(self)
Process a URI and invoke the appropriate handler.
recipes/Python/225299_Use_IISASP_or_Apachemodpythsame/recipe-225299.py