diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-09-27 18:23:45 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-09-27 18:23:45 +0200 |
commit | 87c5b1867511f538ba44f57b50276eec533ccb44 (patch) | |
tree | 31abf52510360fdc3ecf53c117b6832f60af2d4a /index.py | |
parent | 0aa7927b0c7c746dd0bd0422598fc3a5f414bd49 (diff) | |
download | sites-87c5b1867511f538ba44f57b50276eec533ccb44.tar.gz sites-87c5b1867511f538ba44f57b50276eec533ccb44.tar.bz2 sites-87c5b1867511f538ba44f57b50276eec533ccb44.zip |
added simple check for mantainance/offline message
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): |