upgrade from 0.32 to 0.33 makes forms fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
web.py |
New
|
Undecided
|
Unassigned |
Bug Description
Bug reported in the mailing list:
http://
The following example used to work in 0.32, but fails in 0.33.
>>> import web
>>> f = web.form.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/
Input.
File "/Library/
self.id = attrs.setdefaul
File "/Library/
return self.name + '_' + value.replace(' ', '_')
AttributeError: 'bool' object has no attribute 'replace'
And another one:
With 0.33 addatts() does not produce a leading space anymore.
Maybe I'm wrong but checkbox should have checked="checked" ? Try web.form. Checkbox( 'A', checked = True/False)