def update_data_from_path_selection(self):
        """Update data according to path selection.

        Used when the path selection changes in result of edition
        made in the selection entry.
        """
        ### reference objects locally for quicker/easier access

        selection_states = self.selection_states
        selectable_paths = self.selectable_paths

        ### turn off all selection states
        selection_states[:] = [False] * len(selection_states)

        ### turn on selection states for paths from the
        ### path selection that are present in the list of
        ### selectable paths

        for path in self.fm.path_selection:

            if path in selectable_paths:

                index = selectable_paths.index(path)
                selection_states[index] = True

        ### finally update the appearance of the objects
        ### based on their selection state
        self.update_path_objs_appearance()
Update data according to path selection.

        Used when the path selection changes in result of edition
        made in the selection entry.
        
nodezator/fileman/dirpanel/main.py