components/policy/tools/template_writers/writers/doc_atomic_groups_writer.py
def _AddPolicyRow(self, parent, policy):
    '''Adds a row for the policy in the summary table.

    Args:
      parent: The DOM node of the summary table.
      policy: The data structure of the policy.
    '''
    tr = self._AddStyledElement(parent, 'tr', ['tr'])
    indent = 'padding-left: %dpx;' % (7 + self._indent_level * 14)
    if policy['type'] != 'group':
      # Normal policies get two columns with name and caption.
      name_td = self._AddStyledElement(tr, 'td', ['td', 'td.left'],
                                       {'style': indent})
      policy_ref = './'
      if self.config.get('local', False):
        policy_ref = './chrome_policy_list.html'
      self.AddElement(name_td, 'a', {'href': policy_ref + '#' + policy['name']},
                      policy['name'])
      self._AddStyledElement(tr, 'td', ['td', 'td.right'], {},
                             policy['caption'])
    else:
      # Groups get one column with caption.
      name_td = self._AddStyledElement(tr, 'td', ['td', 'td.left'], {
          'style': indent,
          'colspan': '2'
      })
      self.AddElement(name_td, 'a', {'name': policy['name']}, policy['caption'])
Adds a row for the policy in the summary table.

    Args:
      parent: The DOM node of the summary table.
      policy: The data structure of the policy.
    
Adds a row for the policy in the summary table.
Adds a row for the policy in the summary table .
def _AddPolicyRow(self, parent, policy):
    tr = self._AddStyledElement(parent, 'tr', ['tr'])
    indent = 'padding-left: %dpx;' % (7 + self._indent_level * 14)
    if policy['type'] != 'group':
      name_td = self._AddStyledElement(tr, 'td', ['td', 'td.left'],
                                       {'style': indent})
      policy_ref = './'
      if self.config.get('local', False):
        policy_ref = './chrome_policy_list.html'
      self.AddElement(name_td, 'a', {'href': policy_ref + '#' + policy['name']},
                      policy['name'])
      self._AddStyledElement(tr, 'td', ['td', 'td.right'], {},
                             policy['caption'])
    else:
      name_td = self._AddStyledElement(tr, 'td', ['td', 'td.left'], {
          'style': indent,
          'colspan': '2'
      })
      self.AddElement(name_td, 'a', {'name': policy['name']}, policy['caption'])
def _AddPolicyRow ( self , parent , policy ) : tr = self . _AddStyledElement ( parent , 'tr' , [ 'tr' ] ) indent = 'padding-left: %dpx;' % ( 7 + self . _indent_level * 14 ) if policy [ 'type' ] != 'group' : name_td = self . _AddStyledElement ( tr , 'td' , [ 'td' , 'td.left' ] , { 'style' : indent } ) policy_ref = './' if self . config . get ( 'local' , False ) : policy_ref = './chrome_policy_list.html' self . AddElement ( name_td , 'a' , { 'href' : policy_ref + '#' + policy [ 'name' ] } , policy [ 'name' ] ) self . _AddStyledElement ( tr , 'td' , [ 'td' , 'td.right' ] , { } , policy [ 'caption' ] ) else : name_td = self . _AddStyledElement ( tr , 'td' , [ 'td' , 'td.left' ] , { 'style' : indent , 'colspan' : '2' } ) self . AddElement ( name_td , 'a' , { 'name' : policy [ 'name' ] } , policy [ 'caption' ] )
Adds a row for the policy in the summary table.
Adds a row for the policy in the summary table .
'''Adds a row for the policy in the summary table.

    Args:
      parent: The DOM node of the summary table.
      policy: The data structure of the policy.
    ''' # Normal policies get two columns with name and caption. # Groups get one column with caption.
self
parent
The DOM node of the summary table.
The DOM node of the summary table .
policy
The data structure of the policy.
The data structure of the policy .