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