summaryrefslogtreecommitdiffstats
path: root/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/index.py b/index.py
index b8d1167..bdb569d 100755
--- a/index.py
+++ b/index.py
@@ -89,8 +89,18 @@ class new:
if not form.validates():
return render.new(form, user)
else:
- # create list
- return "Done."
+ listname = form.d.name.lower()
+ listadmin = form.d.email
+
+ (success, progress) = util.create_list(listname, listadmin)
+
+ util.notify_admins(listname, listadmin, success, progress)
+
+ if config.listadmins_list:
+ (is_member, message) = util.add_to_list(config.listadmins_list, listadmin)
+ progress += '\n' + message
+
+ return render.progress(listname, not success, progress)
if __name__ == "__main__":