# HG changeset patch # User Jeff Hammel # Date 1435765332 25200 # Node ID aa19f80caa63cdf387ff670fa5abff4ebd1bb9e8 # Parent afa7a874d28e0e395ea7f1856e98148308caa145 more stubbing diff -r afa7a874d28e -r aa19f80caa63 requestdumpster/dumpster.py --- 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()