Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ItemControl.selected = True fails if selected is already True #40

Open
mgedmin opened this issue Oct 27, 2017 · 0 comments
Open

ItemControl.selected = True fails if selected is already True #40

mgedmin opened this issue Oct 27, 2017 · 0 comments

Comments

@mgedmin
Copy link
Member

mgedmin commented Oct 27, 2017

Given a form like

            <select multiple name="select-multiple">
              <option value="foo" />
              <option value="bar" />
              <option value="baz" />
            </select>

if you find the ItemControl for foo (call it item) and set item.selected = True twice in a row, zope.testbrowser ends up calling WebTest's MultipleSelect.value__set() with a list of values that contains duplicates, which in turn causes WebTest to raise

ValueError: Option(s) u'foo' not found (from u'foo', u'bar', u'baz')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant