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

Method toggle

thirdparty/clientform/clientform.py:1894–1908  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1892 return self.get(name, label, nr, exclude_disabled)
1893
1894 def toggle(self, name, by_label=False, nr=None):
1895 """Deprecated: given a name or label and optional disambiguating index
1896 nr, toggle the matching item's selection.
1897
1898 Selecting items follows the behavior described in the docstring of the
1899 'get' method.
1900
1901 if the item is disabled, or this control is disabled or readonly,
1902 raise AttributeError.
1903
1904 """
1905 deprecation(
1906 "item = control.get(...); item.selected = not item.selected")
1907 o = self._get(name, by_label, nr)
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

Callers

nothing calls this directly

Calls 3

_getMethod · 0.95
_set_selected_stateMethod · 0.95
deprecationFunction · 0.85

Tested by

no test coverage detected