components/policy/tools/template_writers/writers/doc_writer.py
def _AddDictionaryExampleMac(self, parent, policy):
    '''Adds an example value for Mac 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 Mac example value
        is generated.
    '''
    example_value = policy['example_value']
    self.AddElement(parent, 'dt', {}, 'Mac:')
    mac = self._AddStyledElement(parent, 'dd', ['.monospace', '.pre-wrap'])
    mac_text = ['<key>%s</key>' % (policy['name'])]
    mac_text += self._PythonObjectToPlist(example_value)
    self.AddText(mac, '\n'.join(mac_text))
Adds an example value for Mac 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 Mac example value
        is generated.
    
Adds an example value for Mac of a 'dict' or 'external' policy to a DOM
node.
Adds an example value for Mac of a ' dict ' or ' external ' policy to a DOM node .
def _AddDictionaryExampleMac(self, parent, policy):
    example_value = policy['example_value']
    self.AddElement(parent, 'dt', {}, 'Mac:')
    mac = self._AddStyledElement(parent, 'dd', ['.monospace', '.pre-wrap'])
    mac_text = ['<key>%s</key>' % (policy['name'])]
    mac_text += self._PythonObjectToPlist(example_value)
    self.AddText(mac, '\n'.join(mac_text))
def _AddDictionaryExampleMac ( self , parent , policy ) : example_value = policy [ 'example_value' ] self . AddElement ( parent , 'dt' , { } , 'Mac:' ) mac = self . _AddStyledElement ( parent , 'dd' , [ '.monospace' , '.pre-wrap' ] ) mac_text = [ '<key>%s</key>' % ( policy [ 'name' ] ) ] mac_text += self . _PythonObjectToPlist ( example_value ) self . AddText ( mac , '\n' . join ( mac_text ) )
Adds an example value for Mac of a 'dict' or 'external' policy to a DOM
node.
Adds an example value for Mac of a ' dict ' or ' external ' policy to a DOM node .
'''Adds an example value for Mac 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 Mac example value
        is generated.
    '''
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 Mac example value
is generated.
A policy of type ' dict ' for which the Mac example value is generated .