summaryrefslogtreecommitdiff
path: root/Mailman/HTMLFormatter.py
diff options
context:
space:
mode:
authormailman1998-03-13 18:16:57 +0000
committermailman1998-03-13 18:16:57 +0000
commit405a5b417a113f9f05573451806a96aab96cfe3e (patch)
treef1e70eb7c444caa2f3d65729c23a596d21788a93 /Mailman/HTMLFormatter.py
parentac3ca024f440f931bd15fecdd6709bd96cf0215e (diff)
downloadmailman-405a5b417a113f9f05573451806a96aab96cfe3e.tar.gz
mailman-405a5b417a113f9f05573451806a96aab96cfe3e.tar.zst
mailman-405a5b417a113f9f05573451806a96aab96cfe3e.zip
Diffstat (limited to 'Mailman/HTMLFormatter.py')
-rw-r--r--Mailman/HTMLFormatter.py25
1 files changed, 22 insertions, 3 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py
index bdf4d3969..60a63a1d6 100644
--- a/Mailman/HTMLFormatter.py
+++ b/Mailman/HTMLFormatter.py
@@ -78,13 +78,15 @@ class HTMLFormatter:
checked = ''
name = { mm_cfg.DontReceiveOwnPosts : "dontreceive",
mm_cfg.DisableDelivery : "disablemail",
- mm_cfg.EnableMime : "plaintext",
+ mm_cfg.DisableMime : "mime",
mm_cfg.AcknowlegePosts : "ackposts",
mm_cfg.Digests : "digest",
mm_cfg.ConcealSubscription : "conceal"
}[type]
import sys
- return '<input type=radio name="%s" value="%d"%s>' % (name, value, checked)
+ return ('<input type=radio name="%s" value="%d"%s>'
+ % (name, value, checked))
+
def FormatDigestButton(self):
if self.digest_is_default:
checked = ' CHECKED'
@@ -99,13 +101,30 @@ class HTMLFormatter:
checked = ' CHECKED'
return '<input type=radio name="digest" value="0"%s>' % checked
+ def FormatMimeDigestsButton(self):
+ if self.mime_is_default_digest:
+ checked = ' CHECKED'
+ else:
+ checked = ''
+ return '<input type=radio name="mime" value="1"%s>' % checked
+ def FormatPlainDigestsButton(self):
+ if self.mime_is_default_digest:
+ checked = ''
+ else:
+ checked = ' CHECKED'
+ return '<input type=radio name="plain" value="1"%s>' % checked
+
def FormatFormStart(self, name, extra=''):
base_url = self.GetScriptURL(name)
full_url = os.path.join(base_url, extra)
return ('<FORM Method=POST ACTION="%s">' % full_url)
def FormatArchiveAnchor(self):
- return '<a href="%s">' % self.GetScriptURL("archives")
+ # *** XXX *** What's the right thing here? When hooking up with an
+ # external mechanism, we need to go to an arbitrary
+ # place, not just to within the mailman hierarchy. Isn't
+ # that what the _base_archive_url is for?
+ return '<a href="%s">' % self._base_archive_url
def FormatFormEnd(self):
return '</FORM>'