1.1 --- a/macros/FormField.py Sat Feb 09 15:56:04 2013 +0100
1.2 +++ b/macros/FormField.py Sat Feb 09 19:50:37 2013 +0100
1.3 @@ -134,7 +134,7 @@
1.4 is_selected = maxselected == 1 and option == value or maxselected != 1 and option in values
1.5
1.6 output.append(fmt.rawHTML('<option value="%s" %s>%s</option>' % (
1.7 - escattr(option), is_selected and "selected" or "", escape(label))
1.8 + escattr(option), is_selected and 'selected="selected"' or "", escape(label))
1.9 ))
1.10
1.11 output.append(fmt.rawHTML('</select>'))
2.1 --- a/macros/FormMessage.py Sat Feb 09 15:56:04 2013 +0100
2.2 +++ b/macros/FormMessage.py Sat Feb 09 19:50:37 2013 +0100
2.3 @@ -75,13 +75,13 @@
2.4 # Exclude values intended for other forms.
2.5
2.6 if fragment and form_fragment != fragment or not fragment and form_fragment:
2.7 - value = ""
2.8 - else:
2.9 - value = form.get(ref, [""])[index and int(index) or 0]
2.10 + return ""
2.11
2.12 # Render the message.
2.13
2.14 - return fmt.text(value)
2.15 + else:
2.16 + value = form.get(ref, [""])[index and int(index) or 0]
2.17 + return fmt.text(value)
2.18
2.19 def showError(text, request):
2.20 fmt = request.formatter