misc: update to checkboxes widget changes (#13581)

This commit is contained in:
Frédéric Péters 2016-10-13 17:18:17 +02:00
parent d8827fced1
commit aeab44dca1
2 changed files with 3 additions and 3 deletions

View File

@ -707,7 +707,7 @@ class MyspaceDirectory(wcs.myspace.MyspaceDirectory):
form = Form(enctype = 'multipart/form-data')
form.add(CheckboxesWidget, 'themes', title=_('Announce Themes'),
value=enabled_themes, options=[(x, x) for x in options],
value=enabled_themes, options=[(x, x, x) for x in options],
inline=False, required=False)
form.add_submit('submit', _('Apply Changes'))

View File

@ -178,5 +178,5 @@ def test_agenda():
app = get_app(pub)
resp = app.get('/agenda/', status=200)
resp = app.get('/agenda/filter')
assert 'tags$elementAdults' in resp.form.fields
assert 'calendars$elementlocal' in resp.form.fields
assert 'tags$element0' in resp.form.fields
assert 'calendars$element0' in resp.form.fields