components/policy/tools/template_writers/writers/doc_writer.py
def _AddSupportedOnList(self, parent, supported_on_list):
    '''Creates a HTML list containing the platforms, products and versions
    that are specified in the list of supported_on.

    Args:
      parent: The DOM node for which the list will be added.
      supported_on_list: The list of supported products, as a list of
        dictionaries.
    '''
    ul = self._AddStyledElement(parent, 'ul', ['ul'])
    for supported_on in supported_on_list:
      text = []
      product = supported_on['product']
      platform = supported_on['platform']
      text.append(self._PRODUCT_MAP[product])
      text.append('(%s)' % (self._PLATFORM_MAP[platform]))
      if supported_on['since_version']:
        since_version = self.GetLocalizedMessage('since_version')
        text.append(since_version.replace('$6', supported_on['since_version']))
      if supported_on['until_version']:
        until_version = self.GetLocalizedMessage('until_version')
        text.append(until_version.replace('$6', supported_on['until_version']))
      # Add the list element:
      self.AddElement(ul, 'li', {}, ' '.join(text))
Creates a HTML list containing the platforms, products and versions
    that are specified in the list of supported_on.

    Args:
      parent: The DOM node for which the list will be added.
      supported_on_list: The list of supported products, as a list of
        dictionaries.
    
Creates a HTML list containing the platforms, products and versions
that are specified in the list of supported_on.
Creates a HTML list containing the platforms products and versions that are specified in the list of supported_on .
def _AddSupportedOnList(self, parent, supported_on_list):
    ul = self._AddStyledElement(parent, 'ul', ['ul'])
    for supported_on in supported_on_list:
      text = []
      product = supported_on['product']
      platform = supported_on['platform']
      text.append(self._PRODUCT_MAP[product])
      text.append('(%s)' % (self._PLATFORM_MAP[platform]))
      if supported_on['since_version']:
        since_version = self.GetLocalizedMessage('since_version')
        text.append(since_version.replace('$6', supported_on['since_version']))
      if supported_on['until_version']:
        until_version = self.GetLocalizedMessage('until_version')
        text.append(until_version.replace('$6', supported_on['until_version']))
      self.AddElement(ul, 'li', {}, ' '.join(text))
def _AddSupportedOnList ( self , parent , supported_on_list ) : ul = self . _AddStyledElement ( parent , 'ul' , [ 'ul' ] ) for supported_on in supported_on_list : text = [ ] product = supported_on [ 'product' ] platform = supported_on [ 'platform' ] text . append ( self . _PRODUCT_MAP [ product ] ) text . append ( '(%s)' % ( self . _PLATFORM_MAP [ platform ] ) ) if supported_on [ 'since_version' ] : since_version = self . GetLocalizedMessage ( 'since_version' ) text . append ( since_version . replace ( '$6' , supported_on [ 'since_version' ] ) ) if supported_on [ 'until_version' ] : until_version = self . GetLocalizedMessage ( 'until_version' ) text . append ( until_version . replace ( '$6' , supported_on [ 'until_version' ] ) ) self . AddElement ( ul , 'li' , { } , ' ' . join ( text ) )
Creates a HTML list containing the platforms, products and versions
that are specified in the list of supported_on.
Creates a HTML list containing the platforms products and versions that are specified in the list of supported_on .
'''Creates a HTML list containing the platforms, products and versions
    that are specified in the list of supported_on.

    Args:
      parent: The DOM node for which the list will be added.
      supported_on_list: The list of supported products, as a list of
        dictionaries.
    ''' # Add the list element:
self
parent
The DOM node for which the list will be added.
The DOM node for which the list will be added .
supported_on_list
The list of supported products, as a list of
dictionaries.
The list of supported products as a list of dictionaries .