# HG changeset patch # User Jeff Hammel # Date 1330535808 28800 # Node ID 13ed82d101443569b5188fccdf50630bde5591f3 # Parent e72d9655d753de74a7677db9a248446b866aa63f call the correct way diff -r e72d9655d753 -r 13ed82d10144 simpypi/factory.py --- 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)