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)
| 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).""" |
no test coverage detected