------------------------------------------------------------
revno: 6735
committer: Barry Warsaw <[email protected]>
branch nick: 3.0
timestamp: Wed 2009-05-27 17:47:21 -0400
message:
When cleaning up the artifacts of a list being deleted, be more careful for
artifacts that don't exist. In that case, just skimp them rather than
complain.
Docstring style cleanup.
Allow for doctest layer specification in the package's __init__.py, defaulting
to SMTPLayer if not given. This is probably too coarse for long term use, but
it works for now.
Make sure pipelines.txt properly cleans up its digest; it must be flushed
after clearing.
renamed:
src/mailman/docs/archivers.txt => src/mailman/archiving/common.txt
modified:
src/mailman/app/lifecycle.py
src/mailman/docs/__init__.py
src/mailman/docs/pipelines.txt
src/mailman/pipeline/docs/digests.txt
src/mailman/archiving/common.txt
=== modified file 'src/mailman/app/lifecycle.py'
--- src/mailman/app/lifecycle.py 2009-05-16 15:08:46 +0000
+++ src/mailman/app/lifecycle.py 2009-05-27 21:47:21 +0000
@@ -101,7 +101,9 @@
])
# Now that we know what files and directories to delete, delete them.
for target in removeables:
- if os.path.islink(target):
+ if not os.path.exists(target):
+ pass
+ elif os.path.islink(target):
os.unlink(target)
elif os.path.isdir(target):
shutil.rmtree(target)
=== renamed file 'src/mailman/docs/archivers.txt' =>
'src/mailman/archiving/common.txt'
--- src/mailman/docs/archivers.txt 2009-01-17 02:04:21 +0000
+++ src/mailman/archiving/common.txt 2009-05-27 21:47:21 +0000
@@ -1,3 +1,4 @@
+=========
Archivers
=========
@@ -46,7 +47,7 @@
Sending the message to the archiver
------------------------------------
+===================================
The archiver is also able to archive the message.
@@ -69,7 +70,7 @@
The Mail-Archive.com
---------------------
+====================
The Mail-Archive <http://www.mail-archive.com> is a public archiver that can
be used to archive message for free. Mailman comes with a plugin for this
@@ -157,7 +158,7 @@
MHonArc
--------
+=======
The MHonArc archiver <http://www.mhonarc.org> is also available.
=== modified file 'src/mailman/docs/__init__.py'
--- src/mailman/docs/__init__.py 2007-05-28 20:21:41 +0000
+++ src/mailman/docs/__init__.py 2009-05-27 21:47:21 +0000
@@ -0,0 +1,30 @@
+# Copyright (C) 2009 by the Free Software Foundation, Inc.
+#
+# This file is part of GNU Mailman.
+#
+# GNU Mailman 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 3 of the License, or (at your option)
+# any later version.
+#
+# GNU Mailman 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
+# GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
+
+"""General Mailman doc tests."""
+
+from __future__ import absolute_import, unicode_literals
+
+__metaclass__ = type
+__all__ = [
+ 'layer',
+ ]
+
+
+
+from mailman.testing.layers import ConfigLayer
+layer = ConfigLayer
=== modified file 'src/mailman/docs/pipelines.txt'
--- src/mailman/docs/pipelines.txt 2009-01-17 02:04:21 +0000
+++ src/mailman/docs/pipelines.txt 2009-05-27 21:47:21 +0000
@@ -1,3 +1,4 @@
+=========
Pipelines
=========
@@ -16,7 +17,7 @@
Processing a message
---------------------
+====================
Messages hit the pipeline after they've been accepted for posting.
@@ -47,12 +48,12 @@
List-Post: <mailto:[email protected]>
List-Subscribe:
<http://lists.example.com/listinfo/[email protected]>,
- <mailto:[email protected]>
+ <mailto:[email protected]>
Archived-At:
http://lists.example.com/archives/4CMWUN6BHVCMHMDAOSJZ2Q72G5M32MWB
List-Unsubscribe:
<http://lists.example.com/listinfo/[email protected]>,
- <mailto:[email protected]>
+ <mailto:[email protected]>
List-Archive: <http://lists.example.com/archives/[email protected]>
List-Help: <mailto:[email protected]?subject=help>
<BLANKLINE>
@@ -183,4 +184,11 @@
<BLANKLINE>
<BLANKLINE>
+
+Clean up the digests
+====================
+
>>> digest.clear()
+ >>> digest.flush()
+ >>> sum(1 for msg in digest_mbox(mlist))
+ 0
=== modified file 'src/mailman/pipeline/docs/digests.txt'
--- src/mailman/pipeline/docs/digests.txt 2009-02-04 12:00:56 +0000
+++ src/mailman/pipeline/docs/digests.txt 2009-05-27 21:47:21 +0000
@@ -1,3 +1,4 @@
+=======
Digests
=======
@@ -30,7 +31,7 @@
Short circuiting
-----------------
+================
When a message is posted to the mailing list, it is generally added to a
mailbox, unless the mailing list does not allow digests.
@@ -56,7 +57,7 @@
Sending a digest
-----------------
+================
For messages which are not digests, but which are posted to a digesting
mailing list, the messages will be stored until they reach a criteria
--
lp:mailman
https://code.launchpad.net/~mailman-coders/mailman/3.0
Your team Mailman Checkins is subscribed to branch lp:mailman.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/3.0/+edit-subscription.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org