diff options
author | richard <devnull@localhost> | 2003-01-02 01:12:44 +0000 |
---|---|---|
committer | richard <devnull@localhost> | 2003-01-02 01:12:44 +0000 |
commit | 4ea0a058475fb23ad124d49f41876125e12274f1 (patch) | |
tree | 0f4b4499f8cc7e11ff932caf7f6b298442208641 /pypi.cgi | |
parent | 6800fa8f1f7b55d677e4bbaf78c9127a2598ac97 (diff) | |
download | decorator-4ea0a058475fb23ad124d49f41876125e12274f1.tar.gz |
added bit for maintenance
Diffstat (limited to 'pypi.cgi')
-rwxr-xr-x | pypi.cgi | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -5,6 +5,13 @@ import sys, os, cgi, StringIO, traceback from BaseHTTPServer import BaseHTTPRequestHandler, DEFAULT_ERROR_MESSAGE +# turn this on if you need to do server maintenance +if 0: + sys.stdout.write('Status: 503 Server down for maintenance\r\n') + sys.stdout.write('Content-Type: text/plain\r\n\r\n') + print 'The PyPI server is down for a short time for maintenance.' + print 'Please try to connect later.' + # # Provide interface to CGI HTTP response handling # |