diff options
Diffstat (limited to 'index.py')
-rwxr-xr-x | index.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,11 +1,10 @@ #!/usr/bin/env python -import sys -sys.path += ['/usr/lib/mailman'] - +import sys, os, re from web import template, form, application, ctx, wsgi, config from socket import gethostbyaddr, gethostbyname -import re + +sys.path += ['/usr/lib/mailman'] import Mailman.Utils valid_ips = [ @@ -61,7 +60,8 @@ create_form = form.Form( class index: def GET(self): - return render.index() + running = not os.path.exists('./offline') + return render.index(running) class spam: def GET(self): |