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

Method set_single

thirdparty/clientform/clientform.py:3035–3054  ·  view source on GitHub ↗

Select / deselect list item in a control having only one item. If the control has multiple list items, ItemCountError is raised. This is just a convenience method, so you don't need to know the item's name -- the item name in these single-item controls is usually so

(self, selected,  # deprecated
                   name=None, type=None, kind=None, id=None,
                   nr=None, by_label=None, label=None)

Source from the content-addressed store, hash-verified

3033 item_name, by_label)
3034
3035 def set_single(self, selected, # deprecated
3036 name=None, type=None, kind=None, id=None,
3037 nr=None, by_label=None, label=None):
3038 """Select / deselect list item in a control having only one item.
3039
3040 If the control has multiple list items, ItemCountError is raised.
3041
3042 This is just a convenience method, so you don't need to know the item's
3043 name -- the item name in these single-item controls is usually
3044 something meaningless like "1" or "on".
3045
3046 For example, if a checkbox has a single item named "on", the following
3047 two calls are equivalent:
3048
3049 control.toggle("on")
3050 control.toggle_single()
3051
3052 """ # by_label ignored and deprecated
3053 self._find_list_control(
3054 name, type, kind, id, label, nr).set_single(selected)
3055 def toggle_single(self, name=None, type=None, kind=None, id=None,
3056 nr=None, by_label=None, label=None): # deprecated
3057 """Toggle selected state of list item in control having only one item.

Callers

nothing calls this directly

Calls 1

_find_list_controlMethod · 0.95

Tested by

no test coverage detected