changeset 17:77357c5c33c2

commit to a namespace
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 28 Feb 2012 15:38:46 -0800
parents d3efc504c0b1
children 90777e79ea13
files simpypi/factory.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/simpypi/factory.py	Tue Feb 28 15:17:23 2012 -0800
+++ b/simpypi/factory.py	Tue Feb 28 15:38:46 2012 -0800
@@ -39,8 +39,7 @@
     """create a webob view and wrap it in middleware"""
     directory = app_conf['directory']
     app = Dispatcher(**app_conf)
-    # TODO: something about serving simple_index, etc
-    return PassthroughFileserver(app, resource_filename(__name__, 'static'))
+    return PassthroughFileserver(app, directory, '/index')
 
 if __name__ == '__main__':
     import shutil