parameters: (self, mode='lib')
return_statement: return paths
docstring: this is the general one and  should be called instead of 
              the specific get_all_web_paths_dict
docstring_summary: this is the general one and  should be called instead of 
              the specific get_all_web_paths_dict
docstring_tokens: this is the general one and should be called instead of the specific get_all_web_paths_dict
function: def get_all_paths_dict(self, mode='lib'):
          '''this is the general one and  should be called instead of 
              the specific get_all_web_paths_dict'''
          xml = self.get_snapshot_xml()
  
          nodes = xml.get_nodes("snapshot/file")
  
          # have to get all of the file objects here
          file_objects = self.get_all_file_objects()
  
          # ensure that the number of file objects is the same as the number
          # of nodes
          if len(nodes) != len(file_objects):
              print("ERROR: number of nodes does not match number of file objects for snapshot[%s]" % self.get_code())
              return {}
  
  
          paths = {}
          for i, node in enumerate(nodes):
              type = Xml.get_attribute(node, "type")
              if not type:
                  type = 'main'
              repo_dir = self.get_dir(mode, file_type=type, file_object=file_objects[i])
              file_name = self._get_file_name(node)
              file_path = "%s/%s" % (repo_dir, file_name)
  
              paths_list = paths.get(type)
              if not paths_list:
                  paths_list = []
                  paths[type] = paths_list
                  
              paths_list.append(file_path)
  
  
          return paths
function_tokens: def get_all_paths_dict ( self , mode = 'lib' ) : xml = self . get_snapshot_xml ( ) nodes = xml . get_nodes ( "snapshot/file" ) # have to get all of the file objects here file_objects = self . get_all_file_objects ( ) # ensure that the number of file objects is the same as the number # of nodes if len ( nodes ) != len ( file_objects ) : print ( "ERROR: number of nodes does not match number of file objects for snapshot[%s]" % self . get_code ( ) ) return { } paths = { } for i , node in enumerate ( nodes ) : type = Xml . get_attribute ( node , "type" ) if not type : type = 'main' repo_dir = self . get_dir ( mode , file_type = type , file_object = file_objects [ i ] ) file_name = self . _get_file_name ( node ) file_path = "%s/%s" % ( repo_dir , file_name ) paths_list = paths . get ( type ) if not paths_list : paths_list = [ ] paths [ type ] = paths_list paths_list . append ( file_path ) return paths