summaryrefslogtreecommitdiff
path: root/Mailman/Gui
diff options
context:
space:
mode:
authorbwarsaw2006-04-15 22:58:13 +0000
committerbwarsaw2006-04-15 22:58:13 +0000
commit592feaed3c2fbc9e0c8489805f818b6a9d5b13b8 (patch)
tree2a7e0afd65fd0a751a53489e6d3d2eaf973be2a1 /Mailman/Gui
parentfdd34dfe8926c22353e8b6defd4d538a52f4cc00 (diff)
downloadmailman-592feaed3c2fbc9e0c8489805f818b6a9d5b13b8.tar.gz
mailman-592feaed3c2fbc9e0c8489805f818b6a9d5b13b8.tar.zst
mailman-592feaed3c2fbc9e0c8489805f818b6a9d5b13b8.zip
Now that Python 2.3 is the minimum requirement for Mailman 2.2:
- Remove True/False binding cruft - Remove __future__ statements for nested scopes - Remove ascii_letters import hack from Utils.py - Remove mimetypes.guess_all_extensions import hack from Scrubber.py - In Pending.py, set _missing to object() (better than using []) Also, update copyright years where appropriate, and re-order imports more to my PEP 8 tastes. Whitespace normalize.
Diffstat (limited to 'Mailman/Gui')
-rw-r--r--Mailman/Gui/Privacy.py28
-rw-r--r--Mailman/Gui/Topics.py6
2 files changed, 11 insertions, 23 deletions
diff --git a/Mailman/Gui/Privacy.py b/Mailman/Gui/Privacy.py
index 298a4d605..e073c4ec7 100644
--- a/Mailman/Gui/Privacy.py
+++ b/Mailman/Gui/Privacy.py
@@ -1,17 +1,17 @@
-# Copyright (C) 2001-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2006 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
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
+# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
@@ -24,12 +24,6 @@ from Mailman import Utils
from Mailman.i18n import _
from Mailman.Gui.GUIBase import GUIBase
-try:
- True, False
-except NameError:
- True = 1
- False = 0
-
class Privacy(GUIBase):
@@ -59,7 +53,7 @@ class Privacy(GUIBase):
_('Confirm'),
_('Require approval'),
_('Confirm and approve')),
- 0,
+ 0,
_('What steps are required for subscription?<br>'),
_('''None - no verification steps (<em>Not
Recommended </em>)<br>
@@ -67,7 +61,7 @@ class Privacy(GUIBase):
Require approval - require list administrator
Approval for subscriptions <br>
Confirm and approve - both confirm and approve
-
+
<p>(*) when someone requests a subscription,
Mailman sends them a notice with a unique
subscription request number that they must reply to
@@ -88,7 +82,7 @@ class Privacy(GUIBase):
Require approval - require list administrator
approval for subscriptions <br>
Confirm and approve - both confirm and approve
-
+
<p>(*) when someone requests a subscription,
Mailman sends them a notice with a unique
subscription request number that they must reply to
@@ -361,18 +355,18 @@ class Privacy(GUIBase):
against every recipient address in the message. The matching is
performed with Python's re.match() function, meaning they are
anchored to the start of the string.
-
+
<p>For backwards compatibility with Mailman 1.1, if the regexp
does not contain an `@', then the pattern is matched against just
the local part of the recipient address. If that match fails, or
if the pattern does contain an `@', then the pattern is matched
against the entire recipient address.
-
+
<p>Matching against the local part is deprecated; in a future
release, the pattern will always be matched against the entire
recipient address.""")),
- ('max_num_recipients', mm_cfg.Number, 5, 0,
+ ('max_num_recipients', mm_cfg.Number, 5, 0,
_('Ceiling on acceptable number of recipients for a posting.'),
_('''If a posting has this number, or more, of recipients, it is
@@ -401,7 +395,7 @@ class Privacy(GUIBase):
case, each rule is matched in turn, with processing stopped after
the first match.
- Note that headers are collected from all the attachments
+ Note that headers are collected from all the attachments
(except for the mailman administrivia message) and
matched against the regular expressions. With this feature,
you can effectively sort out messages with dangerous file
diff --git a/Mailman/Gui/Topics.py b/Mailman/Gui/Topics.py
index a912f3c07..5e250b245 100644
--- a/Mailman/Gui/Topics.py
+++ b/Mailman/Gui/Topics.py
@@ -23,12 +23,6 @@ from Mailman.i18n import _
from Mailman.Logging.Syslog import syslog
from Mailman.Gui.GUIBase import GUIBase
-try:
- True, False
-except NameError:
- True = 1
- False = 0
-
class Topics(GUIBase):