components/policy/tools/template_writers/writers/admx_writer.py
def _AddSupportedOn(self, parent, supported_os_list):
    '''Generates the "supportedOn" ADMX element and adds it to the passed
    parent node. The "supportedOn" element contains information about supported
    Windows OS versions. The following code snippet contains an example of a
    "supportedOn" element:

    <supportedOn>
      <definitions>
        <definition name="$(supported_os)"
                    displayName="$(string.$(supported_os))"/>
        </definitions>
        ...
    </supportedOn>

    Args:
      parent: The parent element to which all generated elements are added.
      supported_os: List with all supported Win OSes.
    '''
    supported_on_elem = self.AddElement(parent, 'supportedOn')
    definitions_elem = self.AddElement(supported_on_elem, 'definitions')
    for supported_os in supported_os_list:
      attributes = {
          'name': supported_os,
          'displayName': self._AdmlString(supported_os)
      }
      self.AddElement(definitions_elem, 'definition', attributes)
Generates the "supportedOn" ADMX element and adds it to the passed
    parent node. The "supportedOn" element contains information about supported
    Windows OS versions. The following code snippet contains an example of a
    "supportedOn" element:

    <supportedOn>
      <definitions>
        <definition name="$(supported_os)"
                    displayName="$(string.$(supported_os))"/>
        </definitions>
        ...
    </supportedOn>

    Args:
      parent: The parent element to which all generated elements are added.
      supported_os: List with all supported Win OSes.
    
Generates the "supportedOn" ADMX element and adds it to the passed
parent node. The "supportedOn" element contains information about supported
Windows OS versions. The following code snippet contains an example of a
"supportedOn" element.


Generates the " supportedOn " ADMX element and adds it to the passed parent node . The " supportedOn " element contains information about supported Windows OS versions . The following code snippet contains an example of a " supportedOn " element .
def _AddSupportedOn(self, parent, supported_os_list):
    supported_on_elem = self.AddElement(parent, 'supportedOn')
    definitions_elem = self.AddElement(supported_on_elem, 'definitions')
    for supported_os in supported_os_list:
      attributes = {
          'name': supported_os,
          'displayName': self._AdmlString(supported_os)
      }
      self.AddElement(definitions_elem, 'definition', attributes)
def _AddSupportedOn ( self , parent , supported_os_list ) : supported_on_elem = self . AddElement ( parent , 'supportedOn' ) definitions_elem = self . AddElement ( supported_on_elem , 'definitions' ) for supported_os in supported_os_list : attributes = { 'name' : supported_os , 'displayName' : self . _AdmlString ( supported_os ) } self . AddElement ( definitions_elem , 'definition' , attributes )
Generates the "supportedOn" ADMX element and adds it to the passed
parent node.
Generates the " supportedOn " ADMX element and adds it to the passed parent node .
'''Generates the "supportedOn" ADMX element and adds it to the passed
    parent node. The "supportedOn" element contains information about supported
    Windows OS versions. The following code snippet contains an example of a
    "supportedOn" element:

    <supportedOn>
      <definitions>
        <definition name="$(supported_os)"
                    displayName="$(string.$(supported_os))"/>
        </definitions>
        ...
    </supportedOn>

    Args:
      parent: The parent element to which all generated elements are added.
      supported_os: List with all supported Win OSes.
    '''
self
parent
The parent element to which all generated elements are added.
The parent element to which all generated elements are added .
supported_os_list
supported_os
List with all supported Win OSes.
List with all supported Win OSes .