diff options
| author | ianb <devnull@localhost> | 2005-05-07 07:46:12 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-05-07 07:46:12 +0000 |
| commit | b00d560c182702238ec73a7f011b7c2768d78616 (patch) | |
| tree | 032f7efa1f259adc52999e561d278577211d57e1 /paste/urlparser.py | |
| parent | d5421707fcd6d8ab6bd8289e10b9a13518a77808 (diff) | |
| download | paste-b00d560c182702238ec73a7f011b7c2768d78616.tar.gz | |
Added urlparser_wrap hook for __init__.py's
Diffstat (limited to 'paste/urlparser.py')
| -rw-r--r-- | paste/urlparser.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index 3ce1394..89a1fca 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -140,7 +140,12 @@ class URLParser(object): environ, start_response, 'Tried to load %s from directory %s' % (filename, self.directory)) - return application(environ, start_response) + if (self.init_module + and getattr(self.init_module, 'urlparser_wrap', None)): + return self.init_module.urlparser_wrap( + environ, start_response, application) + else: + return application(environ, start_response) def not_found(self, environ, start_response, debug_message=None): status, headers, body = wsgilib.error_response( |
