# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239189510 -7200 # Node ID 3012c655a94d5ac4ead220827abf803d7be8cdbc # Parent 870bc725cc9ac94364672b471ccf87a368f4d3ee oops, should use input tag in radio, not option diff -r 870bc725cc9a -r 3012c655a94d web/formwidgets.py --- a/web/formwidgets.py Wed Apr 08 13:17:32 2009 +0200 +++ b/web/formwidgets.py Wed Apr 08 13:18:30 2009 +0200 @@ -165,10 +165,12 @@ options = [] for label, value in field.vocabulary(form): if value in curvalues: - options.append(tags.input(name=name, type=self.type, value=value, checked='checked', **attrs)) + tag = tags.input(name=name, type=self.type, value=value, + checked='checked', **attrs) else: - options.append(tags.option(name=name, type=self.type, value=value, **attrs)) - options[-1] += label + '
' + tag = tags.input(name=name, type=self.type, value=value, **attrs) + tag += label + '
' + options.append(tag) return '\n'.join(options)