changeset 6:aa19f80caa63

more stubbing
author Jeff Hammel <k0scist@gmail.com>
date Wed, 01 Jul 2015 08:42:12 -0700
parents afa7a874d28e
children 83c51f45b82d
files requestdumpster/dumpster.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/requestdumpster/dumpster.py	Tue Jun 30 18:10:15 2015 -0700
+++ b/requestdumpster/dumpster.py	Wed Jul 01 08:42:12 2015 -0700
@@ -39,10 +39,14 @@
     options = parser.parse_args()
 
     # instantiate WSGI app
-    app = 
-    
+    app = RequestDumpster(directory=options.directory)
+
     # construct url
     url = 'http://localhost:{port}/'.format(port=options.port)
 
+    # serve some web
+    server = simple_server.make_server(host=host, port=int(port), app=app)
+    server.serve_forever()
+
 if __name__ == '__main__':
     main()