Return the value of the control as given by normalized labels.
(self)
| 2225 | o.selected = True |
| 2226 | |
| 2227 | def get_value_by_label(self): |
| 2228 | """Return the value of the control as given by normalized labels.""" |
| 2229 | res = [] |
| 2230 | compat = self._form.backwards_compat |
| 2231 | for o in self.items: |
| 2232 | if (not o.disabled or compat) and o.selected: |
| 2233 | for l in o.get_labels(): |
| 2234 | if l.text: |
| 2235 | res.append(l.text) |
| 2236 | break |
| 2237 | else: |
| 2238 | res.append(None) |
| 2239 | return res |
| 2240 | |
| 2241 | def possible_items(self, by_label=False): |
| 2242 | """Deprecated: return the names or labels of all possible items. |
nothing calls this directly
no test coverage detected