Mercurial > hg > simpypi
changeset 24:13ed82d10144
call the correct way
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 29 Feb 2012 09:16:48 -0800 |
parents | e72d9655d753 |
children | 511210365ce3 |
files | simpypi/factory.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/simpypi/factory.py Tue Feb 28 16:59:20 2012 -0800 +++ b/simpypi/factory.py Wed Feb 29 09:16:48 2012 -0800 @@ -18,7 +18,7 @@ class DirectoryServer(StaticURLParser): def __init__(self, directory): - StaticUrlParser.__init__(self, directory) + StaticURLParser.__init__(self, directory) def __call__(self, environ, start_response): import pdb; pdb.set_trace() @@ -48,10 +48,10 @@ path = environ['PATH_INFO'] if path == self.namespace: environ['PATH_INFO'] = '/' - return self.fileserver(environ, start_response) + return DirectoryServer.__call__(self, environ, start_response) elif path.startswith(self.namespace + '/'): environ['PATH_INFO'] = path[len(self.namespace):] - return self.fileserver(environ, start_response) + return DirectoryServer.__call__(self, environ, start_response) return self.app(environ, start_response)