components/policy/tools/template_writers/writers/doc_writer.py
def _AddListExampleWindowsChromeOS(self, parent, policy, is_win):
    '''Adds an example value for Windows or Chromium/Google Chrome OS of a
    'list' policy to a DOM node.

    Args:
      parent: The DOM node for which the example will be added.
      policy: A policy of type 'list', for which the Windows example value
        is generated.
      is_win: True for Windows, False for Chromium/Google Chrome OS.
    '''
    example_value = policy['example_value']
    os_header = self.GetLocalizedMessage('win_example_value') if is_win else \
                self.GetLocalizedMessage('chrome_os_example_value')
    self.AddElement(parent, 'dt', {}, os_header)
    element = self._AddStyledElement(parent, 'dd', ['.monospace', '.pre-wrap'])
    element_text = []
    cnt = 1
    key_name = self._GetRegistryKeyName(policy, is_win)
    for item in example_value:
      element_text.append(
          '%s\\%s\\%d = "%s"' % (key_name, policy['name'], cnt, item))
      cnt = cnt + 1
    self.AddText(element, '\n'.join(element_text))
Adds an example value for Windows or Chromium/Google Chrome OS of a
    'list' policy to a DOM node.

    Args:
      parent: The DOM node for which the example will be added.
      policy: A policy of type 'list', for which the Windows example value
        is generated.
      is_win: True for Windows, False for Chromium/Google Chrome OS.
    
Adds an example value for Windows or Chromium/Google Chrome OS of a
'list' policy to a DOM node.
Adds an example value for Windows or Chromium / Google Chrome OS of a ' list ' policy to a DOM node .
def _AddListExampleWindowsChromeOS(self, parent, policy, is_win):
    example_value = policy['example_value']
    os_header = self.GetLocalizedMessage('win_example_value') if is_win else \
                self.GetLocalizedMessage('chrome_os_example_value')
    self.AddElement(parent, 'dt', {}, os_header)
    element = self._AddStyledElement(parent, 'dd', ['.monospace', '.pre-wrap'])
    element_text = []
    cnt = 1
    key_name = self._GetRegistryKeyName(policy, is_win)
    for item in example_value:
      element_text.append(
          '%s\\%s\\%d = "%s"' % (key_name, policy['name'], cnt, item))
      cnt = cnt + 1
    self.AddText(element, '\n'.join(element_text))
def _AddListExampleWindowsChromeOS ( self , parent , policy , is_win ) : example_value = policy [ 'example_value' ] os_header = self . GetLocalizedMessage ( 'win_example_value' ) if is_win else self . GetLocalizedMessage ( 'chrome_os_example_value' ) self . AddElement ( parent , 'dt' , { } , os_header ) element = self . _AddStyledElement ( parent , 'dd' , [ '.monospace' , '.pre-wrap' ] ) element_text = [ ] cnt = 1 key_name = self . _GetRegistryKeyName ( policy , is_win ) for item in example_value : element_text . append ( '%s\\%s\\%d = "%s"' % ( key_name , policy [ 'name' ] , cnt , item ) ) cnt = cnt + 1 self . AddText ( element , '\n' . join ( element_text ) )
Adds an example value for Windows or Chromium/Google Chrome OS of a
'list' policy to a DOM node.
Adds an example value for Windows or Chromium / Google Chrome OS of a ' list ' policy to a DOM node .
'''Adds an example value for Windows or Chromium/Google Chrome OS of a
    'list' policy to a DOM node.

    Args:
      parent: The DOM node for which the example will be added.
      policy: A policy of type 'list', for which the Windows example value
        is generated.
      is_win: True for Windows, False for Chromium/Google Chrome OS.
    '''
self
parent
The DOM node for which the example will be added.
The DOM node for which the example will be added .
policy
A policy of type 'list', for which the Windows example value
is generated.
A policy of type ' list ' for which the Windows example value is generated .
is_win
True for Windows, False for Chromium/Google Chrome OS.
True for Windows False for Chromium / Google Chrome OS .