Mercurial > public > src > moin > extensions
diff data/plugin/macro/FormSelect.py @ 618:e6a6740166c8
FormCreate: pep8 cleanup
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Mon, 25 Mar 2013 16:34:37 +0100 |
parents | 07e8932e3594 |
children | 819c4121f9a0 |
line wrap: on
line diff
--- a/data/plugin/macro/FormSelect.py Mon Mar 25 16:16:43 2013 +0100 +++ b/data/plugin/macro/FormSelect.py Mon Mar 25 16:34:37 2013 +0100 @@ -2,14 +2,13 @@ """ MoinMoin - FormSelect Macro - - @copyright: 2008 by Peter Bodi <petrdll@centrum.sk> @license: GNU GPL, see COPYING for details. """ from FormField import FormField + class FormSelect(FormField): def __init__(self, macro, args): @@ -28,12 +27,12 @@ def build(self): FormField.build(self) #self.output += self._build_input("hidden", "labels[]", {'value':self.label}) - self.output += "<select name=\"%(label)s\" %(attribs)s>\n" % {'label':self.label, 'attribs':self._attribs} + self.output += "<select name=\"%(label)s\" %(attribs)s>\n" % {'label': self.label, 'attribs': self._attribs} self.output += "<option value=\"\"></option>\n" for item in self.list: - self.output += "<option value=\"%(item)s\">%(item)s</option>\n" % {'item':item} + self.output += "<option value=\"%(item)s\">%(item)s</option>\n" % {'item': item} self.output += "</select>\n" + def execute(macro, args): return FormSelect(macro, args).render() -