diff options
author | ianb <devnull@localhost> | 2007-01-17 18:37:27 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-01-17 18:37:27 +0000 |
commit | 58f2bacef94d38dd9296d55a6bd367b46be05b57 (patch) | |
tree | e93fb8c374e3173c94f3398ee7d9c78e6f895b92 /paste/urlparser.py | |
parent | 357cd14ae443cb61f53229d8851a725c54972f9b (diff) | |
download | paste-58f2bacef94d38dd9296d55a6bd367b46be05b57.tar.gz |
Make StaticURLParser more subclassable
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r-- | paste/urlparser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index ca5f3e6..c20c4fd 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -475,10 +475,13 @@ class StaticURLParser(object): start_response('304 Not Modified', headers) return [''] # empty body - fa = fileapp.FileApp(full) + fa = self.make_app(full) if self.cache_max_age: fa.cache_control(max_age=self.cache_max_age) return fa(environ, start_response) + + def make_app(self, filename): + return fileapp.FileApp(full) def add_slash(self, environ, start_response): |