Exemplo n.º 1
0
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))
Exemplo n.º 2
0
 def serve(self, endpoint):
     server = WSGIServer(self)
     return server.serve(endpoint)
Exemplo n.º 3
0
 def serve(self, endpoint):
     server = WSGIServer(self)
     return server.serve(endpoint)