diff options
| author | bwarsaw | 2001-06-25 21:17:59 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-06-25 21:17:59 +0000 |
| commit | cb178bd6ae1299220ef339a46826c2b5e66803a2 (patch) | |
| tree | 99cc448b8791d6ba00ff55e18d00276069aa7a3c /Mailman/Cgi/subscribe.py | |
| parent | 2443166c42e34c17896c2897356715bbf5fbbe2a (diff) | |
| download | mailman-cb178bd6ae1299220ef339a46826c2b5e66803a2.tar.gz mailman-cb178bd6ae1299220ef339a46826c2b5e66803a2.tar.zst mailman-cb178bd6ae1299220ef339a46826c2b5e66803a2.zip | |
print_results(): Toggle off the output of <head><body> tags by setting
doc.suppress_head to 1. This is because the output generated from
this function comes largely from the subscribe.html template, which
includes those tags.
Diffstat (limited to 'Mailman/Cgi/subscribe.py')
| -rw-r--r-- | Mailman/Cgi/subscribe.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py index 1c4b52399..c004e1cda 100644 --- a/Mailman/Cgi/subscribe.py +++ b/Mailman/Cgi/subscribe.py @@ -255,6 +255,11 @@ def process_form(mlist, doc, cgidata, lang): def print_results(mlist, results, doc, lang): + # The bulk of the document will come from the options.html template, which + # includes it's own html armor (head tags, etc.). Suppress the head that + # Document() derived pages get automatically. + doc.suppress_head = 1 + replacements = mlist.GetStandardReplacements(lang) replacements['<mm-results>'] = results output = mlist.ParseTags('subscribe.html', replacements, lang) |
