diff options
| author | bwarsaw | 2001-06-25 21:10:31 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-06-25 21:10:31 +0000 |
| commit | a753f08a668ef72e98ca904be85af11cca6a47e9 (patch) | |
| tree | f636e04ace96357600afba0e0f857516c1076972 /Mailman/HTMLFormatter.py | |
| parent | 8c8a8b7e15b28325e820f0e5240202c5752a8f6c (diff) | |
| download | mailman-a753f08a668ef72e98ca904be85af11cca6a47e9.tar.gz mailman-a753f08a668ef72e98ca904be85af11cca6a47e9.tar.zst mailman-a753f08a668ef72e98ca904be85af11cca6a47e9.zip | |
Classes Document and HeadlessDocument are almost identical, except
that the former adds <head><body> tags, while the latter suppresses
them. Document should be used for pages that are created by the
scripts out of whole cloth, while HeadlessDocument should be used for
any template-based page (which must supply its own head & body tags,
although not all of them do, I think).
It turns out to be useful to transform a Document into a
HeadlessDocument, so the trigger to output the head & body tags is the
instance variable "suppress_head" which Document defaults to 0 and
HeadlessDocument defaults to 1. All the real work is performed in
Document.Format().
Document.get_content_type(): Add the extra newline here, for
convenience.
Diffstat (limited to 'Mailman/HTMLFormatter.py')
0 files changed, 0 insertions, 0 deletions
