From 40ad0384b82169a737f004321127d41bafe0632c Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 4 Nov 2009 21:45:02 -0500 Subject: [PATCH] Move a module. --- src/mailman/commands/cli_lists.py | 2 +- src/mailman/{ => core}/constants.py | 0 src/mailman/docs/users.txt | 2 +- src/mailman/model/member.py | 2 +- src/mailman/pipeline/docs/calc-recips.txt | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename src/mailman/{ => core}/constants.py (100%) diff --git a/src/mailman/commands/cli_lists.py b/src/mailman/commands/cli_lists.py index 991e9b439..212dba8af 100644 --- a/src/mailman/commands/cli_lists.py +++ b/src/mailman/commands/cli_lists.py @@ -33,7 +33,7 @@ from zope.interface import implements from mailman.Utils import maketext from mailman.app.lifecycle import create_list, remove_list from mailman.config import config -from mailman.constants import system_preferences +from mailman.core.constants import system_preferences from mailman.core.errors import InvalidEmailAddress from mailman.email.message import UserNotification from mailman.i18n import _, using_language diff --git a/src/mailman/constants.py b/src/mailman/core/constants.py similarity index 100% rename from src/mailman/constants.py rename to src/mailman/core/constants.py diff --git a/src/mailman/docs/users.txt b/src/mailman/docs/users.txt index 26788a2e5..a261812e2 100644 --- a/src/mailman/docs/users.txt +++ b/src/mailman/docs/users.txt @@ -137,7 +137,7 @@ Some of these preferences are booleans and they can be set to True or False. >>> config.languages.add('it', 'iso-8859-1', 'Italian') - >>> from mailman.constants import DeliveryMode + >>> from mailman.core.constants import DeliveryMode >>> prefs = user_1.preferences >>> prefs.acknowledge_posts = True >>> prefs.preferred_language = 'it' diff --git a/src/mailman/model/member.py b/src/mailman/model/member.py index 4a158a11e..48bb5037f 100644 --- a/src/mailman/model/member.py +++ b/src/mailman/model/member.py @@ -28,7 +28,7 @@ from storm.locals import * from zope.interface import implements from mailman.config import config -from mailman.constants import system_preferences +from mailman.core.constants import system_preferences from mailman.database.model import Model from mailman.database.types import Enum from mailman.interfaces.member import IMember diff --git a/src/mailman/pipeline/docs/calc-recips.txt b/src/mailman/pipeline/docs/calc-recips.txt index 0821aa1a9..dbab492cb 100644 --- a/src/mailman/pipeline/docs/calc-recips.txt +++ b/src/mailman/pipeline/docs/calc-recips.txt @@ -35,7 +35,7 @@ start out with. First, create a bunch of addresses... ...then make some of the members digest members. - >>> from mailman.constants import DeliveryMode + >>> from mailman.core.constants import DeliveryMode >>> member_d.preferences.delivery_mode = DeliveryMode.plaintext_digests >>> member_e.preferences.delivery_mode = DeliveryMode.mime_digests >>> member_f.preferences.delivery_mode = DeliveryMode.summary_digests -- 2.11.4.GIT