forms.py: Checkbox fill doesn't work correctly

Bug #569569 reported by Justin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
web.py
Fix Committed
Undecided
Unassigned

Bug Description

Given a form with a Checkbox input, calling 'fill' on it doesn't work correctly.

This is due to the way class Form handles validation. It explicitly sets the input.value, instead of calling the newer "set_value" method.

The fix is simple: line 73 of form.py should go from:

- i.value = v

to:

+ i.set_value(v)

Revision history for this message
Anand Chitipothu (anandology) wrote :

Fixed.

Changed in webpy:
status: New → Fix Released
status: Fix Released → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.