diff options
| author | Barry Warsaw | 2011-10-24 22:40:59 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-10-24 22:40:59 -0400 |
| commit | 42d13a8672d73aca2fc889633dbf7b3ff2a9c7ee (patch) | |
| tree | ebdf4648191978b0010b9add08f416e04d1385d8 /src/mailman/app/docs | |
| parent | c7e4e56de6f943b49fdaaede27321185394f7ecb (diff) | |
| download | mailman-42d13a8672d73aca2fc889633dbf7b3ff2a9c7ee.tar.gz mailman-42d13a8672d73aca2fc889633dbf7b3ff2a9c7ee.tar.zst mailman-42d13a8672d73aca2fc889633dbf7b3ff2a9c7ee.zip | |
* 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)
Diffstat (limited to 'src/mailman/app/docs')
| -rw-r--r-- | src/mailman/app/docs/lifecycle.rst | 5 |
1 files changed, 3 insertions, 2 deletions
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') |
