I consider Checkbox implementation is broken now, because
1. I can't create Checkbox without value like this:
from web import form
item_form = form.Form(form.Checkbox("chk"))
2. If I create form this way and try to validate it against the data
that has no value for the Checkbox:
from web import form
item_form = form.Form(form.Checkbox("chk", value="on"))
if item_form.validates(dict(abs="rr")):
print item_form.d
<Storage {'chk': "on"}>
Then item_form.d still has the value for "chk", but in case of
inserting item_form.d in database, it needs to be None if the Checkbox
wasn't checked. Well, it worked for me in the version before I did:
from web import form
item_form = form.Form(form.Checkbox("chk"))
if item_form.validates(dict(abs="rr")):
print item_form.d
<Storage {'chk': None}>