From 42d13a8672d73aca2fc889633dbf7b3ff2a9c7ee Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 24 Oct 2011 22:40:59 -0400 Subject: * Implement the style manager as a utility instead of an attribute hanging off the `mailman.config.config` object. * Fixed bogus use of `bounce_processing` attribute (should have been `process_bounces`, with thanks to Vincent Fretin. (LP: #876774) --- src/mailman/app/docs/lifecycle.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mailman/app/docs') diff --git a/src/mailman/app/docs/lifecycle.rst b/src/mailman/app/docs/lifecycle.rst index 4a8b732e1..d8356db74 100644 --- a/src/mailman/app/docs/lifecycle.rst +++ b/src/mailman/app/docs/lifecycle.rst @@ -58,7 +58,9 @@ Start by registering a test style. ... if 'test' in mailing_list.fqdn_listname: ... styles.append(self) - >>> config.style_manager.register(TestStyle()) + >>> from zope.component import getUtility + >>> from mailman.interfaces.styles import IStyleManager + >>> getUtility(IStyleManager).register(TestStyle()) Using the higher level interface for creating a list, applies all matching list styles. @@ -111,7 +113,6 @@ the system, they won't be created again. :: >>> from mailman.interfaces.usermanager import IUserManager - >>> from zope.component import getUtility >>> user_manager = getUtility(IUserManager) >>> user_a = user_manager.get_user('aperson@example.com') -- cgit v1.3