summaryrefslogtreecommitdiffstats
path: root/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/index.py b/index.py
index 44acc74..38ee86b 100755
--- a/index.py
+++ b/index.py
@@ -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):