components/policy/tools/template_writers/writers/doc_writer.py
def _AddDictionaryExampleWindowsChromeOS(self, parent, policy, is_win):
    '''Adds an example value for Windows of a 'dict' or 'external' policy to a
    DOM node.

    Args:
      parent: The DOM node for which the example will be added.
      policy: A policy of type 'dict', for which the Windows example value
        is generated.
    '''
    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'])
    key_name = self._GetRegistryKeyName(policy, is_win)
    # Explicitly specify separators since defaults depend on python version.
    example = json.dumps(policy['example_value'],
                         indent=2,
                         sort_keys=True,
                         separators=(", ", ": "))
    self.AddText(element, '%s\\%s = %s' % (key_name, policy['name'], example))
Adds an example value for Windows of a 'dict' or 'external' policy to a
    DOM node.

    Args:
      parent: The DOM node for which the example will be added.
      policy: A policy of type 'dict', for which the Windows example value
        is generated.
    
Adds an example value for Windows of a 'dict' or 'external' policy to a
DOM node.
Adds an example value for Windows of a ' dict ' or ' external ' policy to a DOM node .
def _AddDictionaryExampleWindowsChromeOS(self, parent, policy, is_win):
    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'])
    key_name = self._GetRegistryKeyName(policy, is_win)
    example = json.dumps(policy['example_value'],
                         indent=2,
                         sort_keys=True,
                         separators=(", ", ": "))
    self.AddText(element, '%s\\%s = %s' % (key_name, policy['name'], example))
def _AddDictionaryExampleWindowsChromeOS ( self , parent , policy , is_win ) : 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' ] ) key_name = self . _GetRegistryKeyName ( policy , is_win ) example = json . dumps ( policy [ 'example_value' ] , indent = 2 , sort_keys = True , separators = ( ", " , ": " ) ) self . AddText ( element , '%s\\%s = %s' % ( key_name , policy [ 'name' ] , example ) )
Adds an example value for Windows of a 'dict' or 'external' policy to a
DOM node.
Adds an example value for Windows of a ' dict ' or ' external ' policy to a DOM node .
'''Adds an example value for Windows of a 'dict' or 'external' policy to a
    DOM node.

    Args:
      parent: The DOM node for which the example will be added.
      policy: A policy of type 'dict', for which the Windows example value
        is generated.
    ''' # Explicitly specify separators since defaults depend on python version.
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 'dict', for which the Windows example value
is generated.
A policy of type ' dict ' for which the Windows example value is generated .
is_win