def main(): application = WSGISimpleRouter() from wsgiref.validate import validator application.map('/form', validator(show_form)) application.map('/upload', upload_form) application.map('/process', process_form) server = WSGIServer(application) server.serve(('localhost', 8080))
def serve(self, endpoint): server = WSGIServer(self) return server.serve(endpoint)