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

Method fixup

thirdparty/clientform/clientform.py:2299–2312  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2297 o.__dict__["_selected"] = "checked" in attrs
2298
2299 def fixup(self):
2300 ListControl.fixup(self)
2301 found = [o for o in self.items if o.selected and not o.disabled]
2302 if not found:
2303 if self._select_default:
2304 for o in self.items:
2305 if not o.disabled:
2306 o.selected = True
2307 break
2308 else:
2309 # Ensure only one item selected. Choose the last one,
2310 # following IE and Firefox.
2311 for o in found[:-1]:
2312 o.selected = False
2313
2314 def get_labels(self):
2315 return []

Callers

nothing calls this directly

Calls 1

fixupMethod · 0.45

Tested by

no test coverage detected