summaryrefslogtreecommitdiff
path: root/modules/htmlformat.py
diff options
context:
space:
mode:
authorviega1998-05-30 06:06:53 +0000
committerviega1998-05-30 06:06:53 +0000
commit4cf754ca57ef2e904082e105fcd4b78f97ed00a9 (patch)
treea81db0267323e4200988d828cf3d83e206d06ce5 /modules/htmlformat.py
parentbc98003ed7879c4bf32735750c2a1adf88fbe3d3 (diff)
downloadmailman-4cf754ca57ef2e904082e105fcd4b78f97ed00a9.tar.gz
mailman-4cf754ca57ef2e904082e105fcd4b78f97ed00a9.tar.zst
mailman-4cf754ca57ef2e904082e105fcd4b78f97ed00a9.zip
Integrated Scott's cookie code into the distribution.
Note that it does have one problem... If you have cookies off, you have to log in every time, plus your changes don't take effect! That definitely needs to be fixed.
Diffstat (limited to 'modules/htmlformat.py')
-rw-r--r--modules/htmlformat.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/htmlformat.py b/modules/htmlformat.py
index 587bb1a0a..ddb6ac229 100644
--- a/modules/htmlformat.py
+++ b/modules/htmlformat.py
@@ -20,7 +20,7 @@
Encapsulate HTML formatting directives in classes that act as containers
for python and, recursively, for nested HTML formatting objects."""
-__version__ = "$Revision: 547 $"
+__version__ = "$Revision: 635 $"
# Eventually could abstract down to HtmlItem, which outputs an arbitrary html
# object given start / end tags, valid options, and a value.
@@ -406,6 +406,11 @@ class RadioButton(InputObj):
def __init__(self, name, value, checked=0, **kws):
apply(InputObj.__init__, (self, name, 'RADIO', value, checked), kws)
+class CheckBox(InputObj):
+ def __init__(self, name, value, checked=0, **kws):
+ apply(InputObj.__init__, (self, name, "CHECKBOX", value, checked), kws)
+
+
class VerticalSpacer:
def __init__(self, size=10):