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

    Example output:
    <dl>
      <dt>Windows (Windows clients):</dt>
      <dd>
        Software\Policies\Chromium\ProxySettings = {
          "ProxyMode": "direct"
        }
      </dd>
      <dt>Windows (Chromium OS clients):</dt>
      <dd>
        Software\Policies\ChromiumOS\ProxySettings = {
          "ProxyMode": "direct"
        }
      </dd>
      <dt>Android/Linux:</dt>
      <dd>
        ProxySettings: {
          "ProxyMode": "direct"
        }
      </dd>
      <dt>Mac:</dt>
      <dd>
        <key>ProxySettings</key>
        <dict>
          <key>ProxyMode</key>
          <string>direct</string>
        </dict>
      </dd>
    </dl>

    Args:
      parent: The DOM node for which the example will be added.
      policy: The data structure of a policy.
    '''
    examples = self._AddStyledElement(parent, 'dl', ['dd dl'])
    if self.IsPolicySupportedOnWindows(policy):
      self._AddDictionaryExampleWindowsChromeOS(examples, policy, True)
    if self.IsPolicyOrItemSupportedOnPlatform(
        policy, 'chrome_os', management='active_directory'):
      self._AddDictionaryExampleWindowsChromeOS(examples, policy, False)
    if (self.IsPolicyOrItemSupportedOnPlatform(policy, 'android') or
        self.IsPolicyOrItemSupportedOnPlatform(policy, 'linux')):
      self._AddDictionaryExampleAndroidLinux(examples, policy)
    if self.IsPolicyOrItemSupportedOnPlatform(policy, 'mac'):
      self._AddDictionaryExampleMac(examples, policy)
Adds the example value of a 'dict' or 'external' policy to a DOM node.

    Example output:
    <dl>
      <dt>Windows (Windows clients):</dt>
      <dd>
        Software\Policies\Chromium\ProxySettings = {
          "ProxyMode": "direct"
        }
      </dd>
      <dt>Windows (Chromium OS clients):</dt>
      <dd>
        Software\Policies\ChromiumOS\ProxySettings = {
          "ProxyMode": "direct"
        }
      </dd>
      <dt>Android/Linux:</dt>
      <dd>
        ProxySettings: {
          "ProxyMode": "direct"
        }
      </dd>
      <dt>Mac:</dt>
      <dd>
        <key>ProxySettings</key>
        <dict>
          <key>ProxyMode</key>
          <string>direct</string>
        </dict>
      </dd>
    </dl>

    Args:
      parent: The DOM node for which the example will be added.
      policy: The data structure of a policy.
    
Adds the example value of a 'dict' or 'external' policy to a DOM node.
Adds the example value of a ' dict ' or ' external ' policy to a DOM node .
def _AddDictionaryExample(self, parent, policy):
    examples = self._AddStyledElement(parent, 'dl', ['dd dl'])
    if self.IsPolicySupportedOnWindows(policy):
      self._AddDictionaryExampleWindowsChromeOS(examples, policy, True)
    if self.IsPolicyOrItemSupportedOnPlatform(
        policy, 'chrome_os', management='active_directory'):
      self._AddDictionaryExampleWindowsChromeOS(examples, policy, False)
    if (self.IsPolicyOrItemSupportedOnPlatform(policy, 'android') or
        self.IsPolicyOrItemSupportedOnPlatform(policy, 'linux')):
      self._AddDictionaryExampleAndroidLinux(examples, policy)
    if self.IsPolicyOrItemSupportedOnPlatform(policy, 'mac'):
      self._AddDictionaryExampleMac(examples, policy)
def _AddDictionaryExample ( self , parent , policy ) : examples = self . _AddStyledElement ( parent , 'dl' , [ 'dd dl' ] ) if self . IsPolicySupportedOnWindows ( policy ) : self . _AddDictionaryExampleWindowsChromeOS ( examples , policy , True ) if self . IsPolicyOrItemSupportedOnPlatform ( policy , 'chrome_os' , management = 'active_directory' ) : self . _AddDictionaryExampleWindowsChromeOS ( examples , policy , False ) if ( self . IsPolicyOrItemSupportedOnPlatform ( policy , 'android' ) or self . IsPolicyOrItemSupportedOnPlatform ( policy , 'linux' ) ) : self . _AddDictionaryExampleAndroidLinux ( examples , policy ) if self . IsPolicyOrItemSupportedOnPlatform ( policy , 'mac' ) : self . _AddDictionaryExampleMac ( examples , policy )
Adds the example value of a 'dict' or 'external' policy to a DOM node.
Adds the example value of a ' dict ' or ' external ' policy to a DOM node .
'''Adds the example value of a 'dict' or 'external' policy to a DOM node.

    Example output:
    <dl>
      <dt>Windows (Windows clients):</dt>
      <dd>
        Software\Policies\Chromium\ProxySettings = {
          "ProxyMode": "direct"
        }
      </dd>
      <dt>Windows (Chromium OS clients):</dt>
      <dd>
        Software\Policies\ChromiumOS\ProxySettings = {
          "ProxyMode": "direct"
        }
      </dd>
      <dt>Android/Linux:</dt>
      <dd>
        ProxySettings: {
          "ProxyMode": "direct"
        }
      </dd>
      <dt>Mac:</dt>
      <dd>
        <key>ProxySettings</key>
        <dict>
          <key>ProxyMode</key>
          <string>direct</string>
        </dict>
      </dd>
    </dl>

    Args:
      parent: The DOM node for which the example will be added.
      policy: The data structure of a policy.
    '''
self
parent
The DOM node for which the example will be added.
The DOM node for which the example will be added .
policy
The data structure of a policy.
The data structure of a policy .