(self, parent, level)
return folders
List of the folders under a specific parent node.
List of the folders under a specific parent node.
List of the folders under a specific parent node .
def get_list_by_parent(self, parent, level):
        """ List of the folders under a specific parent node."""

        folders = []
        folders_tmp = super(FolderBase, self).get_list(parent)
        if level < 4:
            for folder in folders_tmp:
                folders.append(folder)
                folders += self.get_list_by_parent(" --folder=" +
                                                   folder.properties["name"][8:], level+1)
        return folders
def get_list_by_parent ( self , parent , level ) : folders = [ ] folders_tmp = super ( FolderBase , self ) . get_list ( parent ) if level < 4 : for folder in folders_tmp : folders . append ( folder ) folders += self . get_list_by_parent ( " --folder=" + folder . properties [ "name" ] [ 8 : ] , level + 1 ) return folders