Revision bad78e66 lib/backend.py

b/lib/backend.py
1774 1774
      search (if not given defaults to
1775 1775
      L{constants.OS_SEARCH_PATH})
1776 1776
  @rtype: list of L{objects.OS}
1777
  @return: a list of tuples (name, path, status, diagnose, variants)
1778
      for all (potential) OSes under all search paths, where:
1777
  @return: a list of tuples (name, path, status, diagnose, variants,
1778
      parameters, api_version) for all (potential) OSes under all
1779
      search paths, where:
1779 1780
          - name is the (potential) OS name
1780 1781
          - path is the full path to the OS
1781 1782
          - status True/False is the validity of the OS
1782 1783
          - diagnose is the error message for an invalid OS, otherwise empty
1783 1784
          - variants is a list of supported OS variants, if any
1784 1785
          - parameters is a list of (name, help) parameters, if any
1786
          - api_version is a list of support OS API versions
1785 1787

  
1786 1788
  """
1787 1789
  if top_dirs is None:
......
1802 1804
          diagnose = ""
1803 1805
          variants = os_inst.supported_variants
1804 1806
          parameters = os_inst.supported_parameters
1807
          api_versions = os_inst.api_versions
1805 1808
        else:
1806 1809
          diagnose = os_inst
1807
          variants = parameters = []
1808
        result.append((name, os_path, status, diagnose, variants, parameters))
1810
          variants = parameters = api_versions = []
1811
        result.append((name, os_path, status, diagnose, variants,
1812
                       parameters, api_versions))
1809 1813

  
1810 1814
  return result
1811 1815

  

Also available in: Unified diff