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

Method _pairs_and_controls

thirdparty/clientform/clientform.py:3342–3357  ·  view source on GitHub ↗

Return sequence of (index, key, value, control_index) of totally ordered pairs suitable for urlencoding. control_index is the index of the control in self.controls

(self)

Source from the content-addressed store, hash-verified

3340
3341
3342 def _pairs_and_controls(self):
3343 """Return sequence of (index, key, value, control_index)
3344 of totally ordered pairs suitable for urlencoding.
3345
3346 control_index is the index of the control in self.controls
3347 """
3348 pairs = []
3349 for control_index in xrange(len(self.controls)):
3350 control = self.controls[control_index]
3351 for ii, key, val in control._totally_ordered_pairs():
3352 pairs.append((ii, key, val, control_index))
3353
3354 # stable sort by ONLY first item in tuple
3355 pairs.sort()
3356
3357 return pairs
3358
3359 def _request_data(self):
3360 """Return a tuple (url, data, headers)."""

Callers 2

_pairsMethod · 0.95
_request_dataMethod · 0.95

Calls 3

xrangeClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected