summaryrefslogtreecommitdiff
path: root/Mailman/Gui/General.py
diff options
context:
space:
mode:
authorbwarsaw2002-04-11 04:23:01 +0000
committerbwarsaw2002-04-11 04:23:01 +0000
commit749e9c7f3f2b49fe7ba2cc8ab0a585fb0cba0424 (patch)
tree52f217cda2e445507d26c27938c5f4f1c6d3a1a6 /Mailman/Gui/General.py
parent9cef2c262e896ba249ddb8688617218f5b00b8d5 (diff)
downloadmailman-749e9c7f3f2b49fe7ba2cc8ab0a585fb0cba0424.tar.gz
mailman-749e9c7f3f2b49fe7ba2cc8ab0a585fb0cba0424.tar.zst
mailman-749e9c7f3f2b49fe7ba2cc8ab0a585fb0cba0424.zip
Diffstat (limited to 'Mailman/Gui/General.py')
-rw-r--r--Mailman/Gui/General.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/Mailman/Gui/General.py b/Mailman/Gui/General.py
index 9a6582e6d..52aa31ce3 100644
--- a/Mailman/Gui/General.py
+++ b/Mailman/Gui/General.py
@@ -391,9 +391,9 @@ class General(GUIBase):
if property == 'real_name' and \
val.lower() <> mlist.internal_name().lower():
# These values can't differ by other than case
- doc.addError(_("""<p><b>real_name</b> attribute not
+ doc.addError(_("""<b>real_name</b> attribute not
changed! It must differ from the list's name by case
- only.<p>"""))
+ only."""))
elif property == 'new_member_options':
newopts = 0
for opt in OPTIONS:
@@ -403,3 +403,12 @@ class General(GUIBase):
mlist.new_member_options = newopts
else:
GUIBase._setValue(self, mlist, property, val, doc)
+
+ def _postValidate(self, mlist, doc):
+ if not mlist.reply_to_address.strip() and \
+ mlist.reply_goes_to_list == 2:
+ # You can't go to an explicit address that is blank
+ doc.addError(_("""You cannot add a Reply-To: to an explicit
+ address if that address is blank. Resetting these values."""))
+ mlist.reply_to_address = ''
+ mlist.reply_goes_to_list = 0