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

Method get_value

thirdparty/clientform/clientform.py:2914–2937  ·  view source on GitHub ↗

Return value of control. If only name and value arguments are supplied, equivalent to form[name]

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

Source from the content-addressed store, hash-verified

2912 raise ValueError(str(e))
2913
2914 def get_value(self,
2915 name=None, type=None, kind=None, id=None, nr=None,
2916 by_label=False, # by_label is deprecated
2917 label=None):
2918 """Return value of control.
2919
2920 If only name and value arguments are supplied, equivalent to
2921
2922 form[name]
2923
2924 """
2925 if by_label:
2926 deprecation("form.get_value_by_label(...)")
2927 c = self.find_control(name, type, kind, id, label=label, nr=nr)
2928 if by_label:
2929 try:
2930 meth = c.get_value_by_label
2931 except AttributeError:
2932 raise NotImplementedError(
2933 "control '%s' does not yet support by_label" % c.name)
2934 else:
2935 return meth()
2936 else:
2937 return c.value
2938 def set_value(self, value,
2939 name=None, type=None, kind=None, id=None, nr=None,
2940 by_label=False, # by_label is deprecated

Callers

nothing calls this directly

Calls 2

find_controlMethod · 0.95
deprecationFunction · 0.85

Tested by

no test coverage detected