diff options
| author | Barry Warsaw | 2009-08-26 02:27:37 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2009-08-26 02:27:37 -0400 |
| commit | 9ad8c1e5524bc9479fd356757016ec160f392dd7 (patch) | |
| tree | 2e8f5aab9ed6d9c52f03ae355dbed080602ee5b1 /src/mailman/commands/docs | |
| parent | 0ce2f82735911c738349b1812c86e09355ecee60 (diff) | |
| download | mailman-9ad8c1e5524bc9479fd356757016ec160f392dd7.tar.gz mailman-9ad8c1e5524bc9479fd356757016ec160f392dd7.tar.zst mailman-9ad8c1e5524bc9479fd356757016ec160f392dd7.zip | |
Instead of using an adapter, use a utility to get the mailing list manager.
Diffstat (limited to 'src/mailman/commands/docs')
| -rw-r--r-- | src/mailman/commands/docs/create.txt | 3 | ||||
| -rw-r--r-- | src/mailman/commands/docs/remove.txt | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/commands/docs/create.txt b/src/mailman/commands/docs/create.txt index 349714a67..cf1557210 100644 --- a/src/mailman/commands/docs/create.txt +++ b/src/mailman/commands/docs/create.txt @@ -37,7 +37,8 @@ the mailing list and domain will be created. Now both the domain and the mailing list exist in the database. >>> from mailman.interfaces.listmanager import IListManager - >>> list_manager = IListManager(config) + >>> from zope.component import getUtility + >>> list_manager = getUtility(IListManager) >>> list_manager.get('test@example.xx') <mailing list "test@example.xx" at ...> diff --git a/src/mailman/commands/docs/remove.txt b/src/mailman/commands/docs/remove.txt index 667b5d8c1..3f5c59bf4 100644 --- a/src/mailman/commands/docs/remove.txt +++ b/src/mailman/commands/docs/remove.txt @@ -9,7 +9,8 @@ A system administrator can remove mailing lists by the command line. <mailing list "test@example.com" at ...> >>> from mailman.interfaces.listmanager import IListManager - >>> list_manager = IListManager(config) + >>> from zope.component import getUtility + >>> list_manager = getUtility(IListManager) >>> list_manager.get('test@example.com') <mailing list "test@example.com" at ...> |
