summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcotton1998-10-26 17:57:05 +0000
committercotton1998-10-26 17:57:05 +0000
commit6f4de891d0343b5d043e8eb21ec35f8ab1f6319a (patch)
tree7e7e6ed4ad3f7ba6915a1a30f0cefa99d92acf68
parentb719a8385d69c7f69cedc1524146f80762b08a92 (diff)
downloadmailman-6f4de891d0343b5d043e8eb21ec35f8ab1f6319a.tar.gz
mailman-6f4de891d0343b5d043e8eb21ec35f8ab1f6319a.tar.zst
mailman-6f4de891d0343b5d043e8eb21ec35f8ab1f6319a.zip
-rw-r--r--Mailman/Cgi/edithtml.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Mailman/Cgi/edithtml.py b/Mailman/Cgi/edithtml.py
index 795ae2bcb..622054263 100644
--- a/Mailman/Cgi/edithtml.py
+++ b/Mailman/Cgi/edithtml.py
@@ -22,6 +22,8 @@ import sys
import os, cgi, string, types
from Mailman import Utils, MailList
from Mailman import htmlformat
+from Mailman.HTMLFormatter import HTMLFormatter
+from Mailman import Errors
#Editable templates. We should also be able to edit the archive index, which
@@ -65,7 +67,10 @@ def main():
doc.AddItem(htmlformat.Header(2, "%s : No such list" % list_name))
print doc.Format()
sys.exit(0)
-
+ #
+ # get the list._template_dir attribute
+ #
+ HTMLFormatter.InitVars(list)
if len(list_info) > 1:
template_name = list_info[1]
@@ -110,7 +115,7 @@ def main():
try:
list.ConfirmAdminPassword(cgi_data['adminpw'].value)
ChangeHTML(list, cgi_data, template_name, doc)
- except:
+ except Errors.MMBadPassword:
m = 'Error: Incorrect admin password.'
doc.AddItem(htmlformat.Header(3,
htmlformat.Italic(