示例#1
0
    def makeGrpTreeNone(self):
        """Make tree with no grouping."""
        tree = TMNode((_("Dataset"), _("Size"), _("Type"), _("File")), None)
        for name, ds in self.doc.data.iteritems():
            child = DatasetNode(self.doc, name,
                                ("name", "size", "type", "linkfile"), None)

            # add if not filtered for filtering
            if not self.datasetFilterOut(ds, child):
                tree.insertChildSorted(child)
        return tree
示例#2
0
    def makeGrpTreeNone(self):
        """Make tree with no grouping."""
        tree = TMNode( ("Dataset", "Size", "Type", "File"), None )
        for name, ds in self.doc.data.iteritems():
            child = DatasetNode( self.doc, name,
                                 ("name", "size", "type", "linkfile"),
                                 None )

            # add if not filtered for filtering
            if not self.datasetFilterOut(ds, child):
                tree.insertChildSorted(child)
        return tree
示例#3
0
def treeFromList(nodelist, rootdata):
    """Construct a tree from a list of nodes."""
    tree = TMNode( rootdata, None )
    for node in nodelist:
        tree.insertChildSorted(node)
    return tree
示例#4
0
def treeFromList(nodelist, rootdata):
    """Construct a tree from a list of nodes."""
    tree = TMNode(rootdata, None)
    for node in nodelist:
        tree.insertChildSorted(node)
    return tree