Skip to content

Commit

Permalink
Show available choices when ListControl.getControl() fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Mar 29, 2013
1 parent a58b440 commit cfe9ec7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zope/testbrowser/browser.py
Expand Up @@ -1266,7 +1266,8 @@ def getControl(controls, label=None, value=None, index=None):
options = [c for c in controls if isMatching(c.value, value)]
msg = 'value %r' % value

res = disambiguate(options, msg, index, controlFormTupleRepr)
res = disambiguate(options, msg, index, controlFormTupleRepr,
available=controls)
return res


Expand Down

0 comments on commit cfe9ec7

Please sign in to comment.