Ejemplo n.º 1
0
    def get_valid_nodes(self, graph):
        valid = []
        for node_name in graph.nodes():
            node = graph.node.get(node_name)

            if not node.get('empty') and is_enabled(node):
                valid.append(node_name)
        return valid
Ejemplo n.º 2
0
 def _is_graph_member(self, node_name):
     node = self.manifest.nodes[node_name]
     if node.resource_type == NodeType.Source:
         return True
     return not node.get('empty') and is_enabled(node)
Ejemplo n.º 3
0
 def _is_graph_member(self, node_name):
     node = self.manifest.nodes[node_name]
     if node.resource_type == NodeType.Source:
         return True
     return not node.get('empty') and is_enabled(node)