diff --git a/src/milla/app.py b/src/milla/app.py index e53f9ce..654b2ec 100644 --- a/src/milla/app.py +++ b/src/milla/app.py @@ -63,7 +63,7 @@ class BaseApplication(object): def __init__(self): self.config = self.DEFAULT_CONFIG.copy() - self.setup_routes() + self.dispatcher = None def __call__(self, environ, start_response): start_response = StartResponseWrapper(start_response) @@ -148,15 +148,6 @@ class BaseApplication(object): if filename and os.access(filename, os.R_OK): self.config.update(util.read_config(filename)) - def setup_routes(self): - '''Initialize the request dispatcher - - The default implementation of this method does nothing, but it - is called when an instance of :py:class:`BaseApplication` is - created, and can be used by subclasses to set up the request - dispatcher. - ''' - def make_request(self, environ): '''Create a :py:class:`~milla.Request` from a WSGI environment