Skip to content

Commit

Permalink
Match parts of the display title.
Browse files Browse the repository at this point in the history
This restores it in the way mechanize worked.
  • Loading branch information
Michael Howitz committed Feb 5, 2017
1 parent 8e89efc commit 786a8be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/zope/testbrowser/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,9 @@ def displayValue(self, value):

values = []
for key, titles in self._getOptions():
if any(t in value for t in titles):
if any(v in t
for t in titles
for v in value):
values.append(key)
self.value = values

Expand Down

0 comments on commit 786a8be

Please sign in to comment.