summaryrefslogtreecommitdiff
path: root/Mailman/htmlformat.py
diff options
context:
space:
mode:
authorbwarsaw2001-05-09 06:36:21 +0000
committerbwarsaw2001-05-09 06:36:21 +0000
commit08775dcc27698d31066774334c105164211389c3 (patch)
tree8b1d178a7396e9057fda9510de9be478e65e9a66 /Mailman/htmlformat.py
parent5a3699ab7389629603e802595a2a3337a4c4cc7d (diff)
downloadmailman-08775dcc27698d31066774334c105164211389c3.tar.gz
mailman-08775dcc27698d31066774334c105164211389c3.tar.zst
mailman-08775dcc27698d31066774334c105164211389c3.zip
Diffstat (limited to 'Mailman/htmlformat.py')
-rw-r--r--Mailman/htmlformat.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py
index 68306dd41..86ed99ea1 100644
--- a/Mailman/htmlformat.py
+++ b/Mailman/htmlformat.py
@@ -259,6 +259,19 @@ class Container:
output.append(HTMLFormatObject(item, indent))
return string.join(output, '')
+
+class Label(Container):
+ align = 'right'
+
+ def __init__(self, *items):
+ Container.__init__(self, *items)
+
+ def Format(self, indent=0):
+ return ('<div align="%s">' % self.align) + \
+ Container.Format(self, indent) + \
+ '</div>'
+
+
# My own standard document template. YMMV.
# something more abstract would be more work to use...
@@ -403,11 +416,11 @@ class SubmitButton(InputObj):
InputObj.__init__(self, name, "SUBMIT", button_text, checked=0)
class PasswordBox(InputObj):
- def __init__(self, name):
- InputObj.__init__(self, name, "PASSWORD", '', checked=0)
+ def __init__(self, name, value='', size=mm_cfg.TEXTFIELDWIDTH):
+ InputObj.__init__(self, name, "PASSWORD", value, checked=0, size=size)
class TextBox(InputObj):
- def __init__(self, name, value='', size=10):
+ def __init__(self, name, value='', size=mm_cfg.TEXTFIELDWIDTH):
InputObj.__init__(self, name, "TEXT", value, checked=0, size=size)
class Hidden(InputObj):