MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / children

Method children

web/pgadmin/browser/utils.py:342–351  ·  view source on GitHub ↗

Build a list of treeview nodes from the child nodes.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

340 )
341
342 def children(self, *args, **kwargs):
343 """Build a list of treeview nodes from the child nodes."""
344 children = self.get_children_nodes(*args, **kwargs)
345
346 # Return sorted nodes based on label
347 return make_json_response(
348 data=sorted(
349 children, key=lambda c: c['label']
350 )
351 )
352
353 def get_children_nodes(self, *args, **kwargs):
354 """

Callers

nothing calls this directly

Calls 2

get_children_nodesMethod · 0.95
make_json_responseFunction · 0.90

Tested by

no test coverage detected