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

Method possible_items

thirdparty/clientform/clientform.py:2241–2259  ·  view source on GitHub ↗

Deprecated: return the names or labels of all possible items. Includes disabled items, which may be misleading for some use cases.

(self, by_label=False)

Source from the content-addressed store, hash-verified

2239 return res
2240
2241 def possible_items(self, by_label=False):
2242 """Deprecated: return the names or labels of all possible items.
2243
2244 Includes disabled items, which may be misleading for some use cases.
2245
2246 """
2247 deprecation(
2248 "[item.name for item in self.items]")
2249 if by_label:
2250 res = []
2251 for o in self.items:
2252 for l in o.get_labels():
2253 if l.text:
2254 res.append(l.text)
2255 break
2256 else:
2257 res.append(None)
2258 return res
2259 return [o.name for o in self.items]
2260
2261 def _totally_ordered_pairs(self):
2262 if self.disabled or self.name is None:

Callers

nothing calls this directly

Calls 3

deprecationFunction · 0.85
get_labelsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected