MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / get_children_nodes

Method get_children_nodes

web/pgadmin/browser/utils.py:353–367  ·  view source on GitHub ↗

Returns the list of children nodes for the current nodes. Override this function for special cases only. :param args: :param kwargs: Parameters to generate the correct set of tree node. :return: List of the children nodes

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

351 )
352
353 def get_children_nodes(self, *args, **kwargs):
354 """
355 Returns the list of children nodes for the current nodes. Override this
356 function for special cases only.
357
358 :param args:
359 :param kwargs: Parameters to generate the correct set of tree node.
360 :return: List of the children nodes
361 """
362 children = []
363
364 for module in self.blueprint.submodules:
365 children.extend(module.get_nodes(*args, **kwargs))
366
367 return children
368
369
370class PGChildNodeView(NodeView):

Callers 1

childrenMethod · 0.95

Calls 2

extendMethod · 0.80
get_nodesMethod · 0.45

Tested by

no test coverage detected