Révision aeab44dc
Ajouté par Frédéric Péters il y a plus de 7 ans
extra/modules/myspace.py | ||
---|---|---|
707 | 707 |
|
708 | 708 |
form = Form(enctype = 'multipart/form-data') |
709 | 709 |
form.add(CheckboxesWidget, 'themes', title=_('Announce Themes'), |
710 |
value=enabled_themes, options=[(x, x) for x in options], |
|
710 |
value=enabled_themes, options=[(x, x, x) for x in options],
|
|
711 | 711 |
inline=False, required=False) |
712 | 712 |
|
713 | 713 |
form.add_submit('submit', _('Apply Changes')) |
tests/test_user_pages.py | ||
---|---|---|
178 | 178 |
app = get_app(pub) |
179 | 179 |
resp = app.get('/agenda/', status=200) |
180 | 180 |
resp = app.get('/agenda/filter') |
181 |
assert 'tags$elementAdults' in resp.form.fields |
|
182 |
assert 'calendars$elementlocal' in resp.form.fields |
|
181 |
assert 'tags$element0' in resp.form.fields |
|
182 |
assert 'calendars$element0' in resp.form.fields |
Formats disponibles : Unified diff
misc: update to checkboxes widget changes (#13581)