From 58f2bacef94d38dd9296d55a6bd367b46be05b57 Mon Sep 17 00:00:00 2001 From: ianb Date: Wed, 17 Jan 2007 18:37:27 +0000 Subject: Make StaticURLParser more subclassable --- paste/urlparser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'paste/urlparser.py') 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): -- cgit v1.2.1