comparison data/plugin/macro/FormRadio.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
comparison
equal deleted inserted replaced
617:07e8932e3594 618:e6a6740166c8
1 # -*- coding: iso-8859-1 -*- 1 # -*- coding: iso-8859-1 -*-
2 """ 2 """
3 MoinMoin - FormRadio Macro 3 MoinMoin - FormRadio Macro
4
5
6 4
7 @copyright: 2008 by Peter Bodi <petrdll@centrum.sk> 5 @copyright: 2008 by Peter Bodi <petrdll@centrum.sk>
8 @license: GNU GPL, see COPYING for details. 6 @license: GNU GPL, see COPYING for details.
9 """ 7 """
10 8
11 from FormField import FormField 9 from FormField import FormField
10
12 11
13 class FormRadio(FormField): 12 class FormRadio(FormField):
14 13
15 def __init(self, macro, args): 14 def __init(self, macro, args):
16 FormField.__init__(self, macro, args) 15 FormField.__init__(self, macro, args)
35 self._attribs["value"] = self.value 34 self._attribs["value"] = self.value
36 self._attribs["checked"] = "checked" 35 self._attribs["checked"] = "checked"
37 #self.output += self._build_input("hidden", "labels[]", {'value':self.label}) 36 #self.output += self._build_input("hidden", "labels[]", {'value':self.label})
38 self.output += self._build_input("radio", self.label, self._attribs) 37 self.output += self._build_input("radio", self.label, self._attribs)
39 38
39
40 def execute(macro, args): 40 def execute(macro, args):
41 return FormRadio(macro, args).render() 41 return FormRadio(macro, args).render()
42