diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-04-11 18:36:40 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-04-11 18:36:40 +0900 |
commit | 4adcb27774066835546919d127c0ee341bb00208 (patch) | |
tree | 30011132a9664c343e05108de05413fefae2914b /Mailman/Gui/General.py | |
parent | 21794803f456989ecdcafbe9cb395885ee24becb (diff) | |
parent | a942e159e5c738072efa8fa8c4d7c76cc35a7db5 (diff) | |
download | mailman2-4adcb27774066835546919d127c0ee341bb00208.tar.gz mailman2-4adcb27774066835546919d127c0ee341bb00208.tar.xz mailman2-4adcb27774066835546919d127c0ee341bb00208.zip |
merge lp:mailman/2.1 up to rev 1750
Diffstat (limited to '')
-rw-r--r-- | Mailman/Gui/General.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Mailman/Gui/General.py b/Mailman/Gui/General.py index 980e5f2b..dfde6309 100644 --- a/Mailman/Gui/General.py +++ b/Mailman/Gui/General.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2014 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2018 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -559,6 +559,14 @@ mlist.info. or not isinstance(val, IntType)): doc.addError(_("""<b>admin_member_chunksize</b> attribute not changed! It must be an integer > 0.""")) + elif property == 'host_name': + try: + Utils.ValidateEmail('user@' + val) + except Errors.EmailAddressError: + doc.addError(_("""<b>host_name</b> attribute not changed! + It must be a valid domain name.""")) + else: + GUIBase._setValue(self, mlist, property, val, doc) else: GUIBase._setValue(self, mlist, property, val, doc) |