summaryrefslogtreecommitdiff
path: root/src/mailman/docs
diff options
context:
space:
mode:
authorBarry Warsaw2009-08-09 11:01:16 -0400
committerBarry Warsaw2009-08-09 11:01:16 -0400
commitdf000679f72bfbf1d40e7d1553b376cda524be95 (patch)
tree72ad1c8419984283bf53959a616ee903a64244af /src/mailman/docs
parent9cb2d844baf1ec47bed25fd48e5762ab641b5498 (diff)
downloadmailman-df000679f72bfbf1d40e7d1553b376cda524be95.tar.gz
mailman-df000679f72bfbf1d40e7d1553b376cda524be95.tar.zst
mailman-df000679f72bfbf1d40e7d1553b376cda524be95.zip
Rename files inside src/mailman/commands to indicate whether it's an email
command (eml_ prefix) or a command line interface (cli_ prefix). Fix a test breakage.
Diffstat (limited to 'src/mailman/docs')
-rw-r--r--src/mailman/docs/hooks.txt9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mailman/docs/hooks.txt b/src/mailman/docs/hooks.txt
index ddc4fe5fa..381caf6ed 100644
--- a/src/mailman/docs/hooks.txt
+++ b/src/mailman/docs/hooks.txt
@@ -44,13 +44,13 @@ We can set the pre-hook in the configuration file.
... """
The hooks are run in the second and third steps of initialization. However,
-we can't run those initialization steps in process, so call `bin/version` to
-force the hooks to run.
+we can't run those initialization steps in process, so call a command line
+script that will produce no output to force the hooks to run.
>>> import subprocess
>>> def call():
... proc = subprocess.Popen(
- ... 'bin/version',
+ ... 'bin/mailman lists -d ignore -b'.split(),
... cwd='../..', # testrunner runs from ./parts/test
... env=dict(MAILMAN_CONFIG_FILE=config_path,
... PYTHONPATH=config_directory),
@@ -61,7 +61,6 @@ force the hooks to run.
>>> call()
pre-hook: 1
- Using GNU Mailman 3...
<BLANKLINE>
>>> os.remove(config_path)
@@ -83,7 +82,6 @@ We can set the post-hook in the configuration file.
>>> call()
post-hook: 1
- Using GNU Mailman 3...
<BLANKLINE>
>>> os.remove(config_path)
@@ -107,5 +105,4 @@ We can set the pre- and post-hooks in the configuration file.
>>> call()
pre-hook: 1
post-hook: 2
- Using GNU Mailman 3...
<BLANKLINE>