Logo Search packages:      
Sourcecode: lfm version File versions  Download package

def lfm::actions::Tree::__get_graph (   self,
  path 
) [private]

return 2 dicts with tree structure

Definition at line 1660 of file actions.py.

01660                                :
        """return 2 dicts with tree structure"""

        tree_n = {}
        tree_dir = {}
        expanded = None
        while path:
            if path == os.sep and tree_dir.has_key(os.sep):
                break
            tree_dir[path] = (self.__get_dirs(path), expanded)
            expanded = os.path.basename(path)
            path = os.path.dirname(path)
        dir_keys = tree_dir.keys()
        dir_keys.sort()
        n = 0
        for d in dir_keys:
            tree_n[n] = d
            n += 1
        return tree_n, tree_dir


    def __get_node(self, i, tn, td, base):


Generated by  Doxygen 1.6.0   Back to index