Mercurial > hg > index.fcgi > www > www-1
annotate myrss/myrss_test_server.py @ 142:2ed8cf5f36bf
myrss2: fix handling of null feed title or links; miscellaneous URL updates
author | paulo |
---|---|
date | Mon, 18 Dec 2023 20:10:27 +0000 |
parents | a1456ecd25b9 |
children |
rev | line source |
---|---|
paulo@42 | 1 import wsgiref.simple_server |
paulo@42 | 2 import SocketServer |
paulo@42 | 3 |
paulo@43 | 4 import myrss_app |
paulo@42 | 5 |
paulo@42 | 6 |
paulo@42 | 7 class ThreadingWSGIServer(SocketServer.ThreadingMixIn, wsgiref.simple_server.WSGIServer): |
paulo@42 | 8 pass |
paulo@42 | 9 |
paulo@42 | 10 |
paulo@42 | 11 if __name__ == "__main__": |
paulo@42 | 12 httpd = ThreadingWSGIServer(('', 8000), wsgiref.simple_server.WSGIRequestHandler) |
paulo@43 | 13 httpd.set_app(myrss_app.MyRssApp()) |
paulo@42 | 14 httpd.serve_forever() |