summaryrefslogtreecommitdiffstats
path: root/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.py b/index.py
index 367b5a5..8fcd58d 100755
--- a/index.py
+++ b/index.py
@@ -8,6 +8,7 @@ urls = (
'/neu.*', 'new',
'/new', 'new',
'/help/spam.*', 'spam',
+ '/help/unsubscribe\.([a-z]+).*', 'unsubscribe',
)
render = template.render('templates/', base='layout');
@@ -30,6 +31,13 @@ class spam:
def GET(self):
return render.spam()
+class unsubscribe:
+ def GET(self, lang):
+ if (lang.startswith('de')):
+ return render.unsubscribe_de()
+ else:
+ return render.unsubscribe_en()
+
class new:
def GET(self):
form = create_form()