summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces
diff options
context:
space:
mode:
authorBarry Warsaw2012-04-08 10:15:29 -0600
committerBarry Warsaw2012-04-08 10:15:29 -0600
commit2410fe8c2578fbd11275cfc7fc1897173eecd41a (patch)
tree77d5e612f2efd1844bb777102067f3f658aa499c /src/mailman/interfaces
parent7abcd4faa1553fb012020b6204fb8b6208fa5bf2 (diff)
downloadmailman-2410fe8c2578fbd11275cfc7fc1897173eecd41a.tar.gz
mailman-2410fe8c2578fbd11275cfc7fc1897173eecd41a.tar.zst
mailman-2410fe8c2578fbd11275cfc7fc1897173eecd41a.zip
- Refactor the way databases are schema-migrated so that load_migrations()
can be tested separately. - Add an `until` argument to load_migrations() so that we can load only up to a given timestamp. - In load_migrations(), ignore files in which the `version` part of the file name is empty. - In migrations.rst, use the new, better way of ensuring post-test cleanup. - Add tests for partial upgrades. - LP: #971013 - schema migrations for beta 2. - LP: #967238 - IMailingList.archive + IMailingList.archive_private -> IMailingList.archive_policy, and add ArchivePolicy enum. - Move the `chdir` context manager to helpers.py and add `temporary_db` context manager.
Diffstat (limited to 'src/mailman/interfaces')
-rw-r--r--src/mailman/interfaces/archiver.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mailman/interfaces/archiver.py b/src/mailman/interfaces/archiver.py
index f3edc7719..1f7e57ef0 100644
--- a/src/mailman/interfaces/archiver.py
+++ b/src/mailman/interfaces/archiver.py
@@ -21,6 +21,7 @@ from __future__ import absolute_import, unicode_literals
__metaclass__ = type
__all__ = [
+ 'ArchivePolicy',
'ClobberDate',
'IArchiver',
]
@@ -31,6 +32,13 @@ from zope.interface import Interface, Attribute
+class ArchivePolicy(Enum):
+ never = 0
+ private = 1
+ public = 2
+
+
+
class ClobberDate(Enum):
never = 1
maybe = 2