diff options
| author | Andrea Crotti | 2012-03-14 16:49:59 +0000 |
|---|---|---|
| committer | Andrea Crotti | 2012-03-14 16:49:59 +0000 |
| commit | 52a7e534427f6a62db0f7d857dc4fc2a19137f0a (patch) | |
| tree | 5ac1e40555fc391dae241d0741d1fafbaa338396 /src/mailman/commands/cli_withlist.py | |
| parent | f66b5879531dc37509402cc17c1e7bfe817d964c (diff) | |
| parent | bcc42e2201c7172848185e5675a7b79e3d28aa0f (diff) | |
| download | mailman-52a7e534427f6a62db0f7d857dc4fc2a19137f0a.tar.gz mailman-52a7e534427f6a62db0f7d857dc4fc2a19137f0a.tar.zst mailman-52a7e534427f6a62db0f7d857dc4fc2a19137f0a.zip | |
Diffstat (limited to 'src/mailman/commands/cli_withlist.py')
| -rw-r--r-- | src/mailman/commands/cli_withlist.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mailman/commands/cli_withlist.py b/src/mailman/commands/cli_withlist.py index dd1596227..3b1b36b1a 100644 --- a/src/mailman/commands/cli_withlist.py +++ b/src/mailman/commands/cli_withlist.py @@ -35,9 +35,9 @@ from zope.interface import implements from mailman.config import config from mailman.core.i18n import _ -from mailman.interact import DEFAULT_BANNER, interact from mailman.interfaces.command import ICLISubCommand from mailman.interfaces.listmanager import IListManager +from mailman.utilities.interact import DEFAULT_BANNER, interact from mailman.utilities.modules import call_name # Global holding onto the open mailing list. @@ -151,7 +151,6 @@ class Withlist: abort=config.db.abort, config=config, ) - banner = config.shell.banner + '\n' + banner if as_boolean(config.shell.use_ipython): self._start_ipython(overrides, banner) @@ -167,14 +166,14 @@ class Withlist: print _('ipython is not available, set use_ipython to no') def _start_python(self, overrides, banner): - # set the tab completion + # Set the tab completion. try: import readline, rlcompleter readline.parse_and_bind('tab: complete') except ImportError: pass else: - sys.ps1 = config.shell.ps1 + ' ' + sys.ps1 = config.shell.prompt + ' ' interact(upframe=False, banner=banner, overrides=overrides) def _details(self): @@ -240,9 +239,9 @@ and run this from the command line: % bin/mailman withlist -r change mylist@example.com 'My List'""") - + class Shell(Withlist): """An alias for `withlist`.""" - + name = 'shell' |
