MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / set

Method set

thirdparty/clientform/clientform.py:1910–1923  ·  view source on GitHub ↗

Deprecated: given a name or label and optional disambiguating index nr, set the matching item's selection to the bool value of selected. Selecting items follows the behavior described in the docstring of the 'get' method. if the item is disabled, or this control is

(self, selected, name, by_label=False, nr=None)

Source from the content-addressed store, hash-verified

1908 self._set_selected_state(o, not o.selected)
1909
1910 def set(self, selected, name, by_label=False, nr=None):
1911 """Deprecated: given a name or label and optional disambiguating index
1912 nr, set the matching item's selection to the bool value of selected.
1913
1914 Selecting items follows the behavior described in the docstring of the
1915 'get' method.
1916
1917 if the item is disabled, or this control is disabled or readonly,
1918 raise AttributeError.
1919
1920 """
1921 deprecation(
1922 "control.get(...).selected = <boolean>")
1923 self._set_selected_state(self._get(name, by_label, nr), selected)
1924
1925 def _set_selected_state(self, item, action):
1926 # action:

Callers

nothing calls this directly

Calls 3

_set_selected_stateMethod · 0.95
_getMethod · 0.95
deprecationFunction · 0.85

Tested by

no test coverage detected