diff options
| author | bwarsaw | 2000-03-03 04:27:53 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-03-03 04:27:53 +0000 |
| commit | c13fd6773871eb5c0b238c9f5866cb0beac18fa1 (patch) | |
| tree | 80a34826c87d094aed018be7d601fb39307f6b2b /Mailman/htmlformat.py | |
| parent | 2030b5c2c64a532c9c68122006d2f16ff0f51ea3 (diff) | |
| download | mailman-c13fd6773871eb5c0b238c9f5866cb0beac18fa1.tar.gz mailman-c13fd6773871eb5c0b238c9f5866cb0beac18fa1.tar.zst mailman-c13fd6773871eb5c0b238c9f5866cb0beac18fa1.zip | |
Diffstat (limited to 'Mailman/htmlformat.py')
| -rw-r--r-- | Mailman/htmlformat.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index ad856d0e0..d645e6f35 100644 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -374,17 +374,15 @@ class InputObj: self.kws = kws def Format(self, indent=0): - output = '<INPUT name="%s" type="%s" value="%s"' % ( - self.name, self.type, self.value) - - for (key, val) in self.kws.items(): - output = '%s "%s"="%s"' % (output, key, val) - - if self.checked: - output = output + ' CHECKED' + output = ['<INPUT name="%s" type="%s" value="%s"' % + (self.name, self.type, self.value)] + for item in self.kws.items(): + output.append('%s="%s"' % item) + if self.checked: + output.append('CHECKED') + output.append('>') + return string.join(output, ' ') - output = output + '>' - return output class SubmitButton(InputObj): def __init__(self, name, button_text): |
