Project

General

Profile

0001-misc-update-to-checkboxes-widget-changes-13581.patch

Frédéric Péters, 13 Oct 2016 05:19 PM

Download (1.48 KB)

View differences:

Subject: [PATCH] misc: update to checkboxes widget changes (#13581)

 extra/modules/myspace.py | 2 +-
 tests/test_user_pages.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
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
183
-