summaryrefslogtreecommitdiff
path: root/pypi.cgi
diff options
context:
space:
mode:
authorrichard <devnull@localhost>2003-01-02 01:12:44 +0000
committerrichard <devnull@localhost>2003-01-02 01:12:44 +0000
commit4ea0a058475fb23ad124d49f41876125e12274f1 (patch)
tree0f4b4499f8cc7e11ff932caf7f6b298442208641 /pypi.cgi
parent6800fa8f1f7b55d677e4bbaf78c9127a2598ac97 (diff)
downloaddecorator-4ea0a058475fb23ad124d49f41876125e12274f1.tar.gz
added bit for maintenance
Diffstat (limited to 'pypi.cgi')
-rwxr-xr-xpypi.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/pypi.cgi b/pypi.cgi
index 600ad0d..22921d0 100755
--- a/pypi.cgi
+++ b/pypi.cgi
@@ -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
#