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