components/policy/tools/generate_extension_admx.py
def _BeginAdmxTemplate(self):
    '''
    Writes the header of the ADMX doc.

    '''
    dom_impl = minidom.getDOMImplementation('')
    self._admx_doc = dom_impl.createDocument(None, 'policyDefinitions', None)
    root_elem = self._admx_doc.documentElement
    self._SetAttribute(root_elem, 'revision', '1.0')
    self._SetAttribute(root_elem, 'schemaVersion', '1.0')

    namespaces_elem = self._AddElement(root_elem, 'policyNamespaces')
    self._AddNamespace(namespaces_elem, 'target',
                       'Google.Policies.ThirdParty.' + self._extension_id,
                       'extension')
    self._AddNamespace(namespaces_elem, 'using', 'Google.Policies', 'Google')
    self._AddNamespace(namespaces_elem, 'using', 'Microsoft.Policies.Windows',
                       'windows')

    resources_elem = self._AddElement(root_elem, 'resources')
    self._SetAttribute(resources_elem, 'minRequiredRevision', '1.0')

    supported_on_elem = self._AddElement(root_elem, 'supportedOn')
    definitions_elem = self._AddElement(supported_on_elem, 'definitions')
    definition_elem = self._AddElement(definitions_elem, 'definition')
    self._SetAttribute(definition_elem, 'displayName',
                       'Microsoft Windows 7 or later', 'SUPPORTED_WIN7')
    self._SetAttribute(definition_elem, 'name', 'SUPPORTED_WIN7')

    self.categories_elem_ = self._AddElement(root_elem, 'categories')
    self._policies_elem = self._AddElement(root_elem, 'policies')

    Writes the header of the ADMX doc.

    
Writes the header of the ADMX doc.
Writes the header of the ADMX doc .
def _BeginAdmxTemplate(self):
    dom_impl = minidom.getDOMImplementation('')
    self._admx_doc = dom_impl.createDocument(None, 'policyDefinitions', None)
    root_elem = self._admx_doc.documentElement
    self._SetAttribute(root_elem, 'revision', '1.0')
    self._SetAttribute(root_elem, 'schemaVersion', '1.0')
    namespaces_elem = self._AddElement(root_elem, 'policyNamespaces')
    self._AddNamespace(namespaces_elem, 'target',
                       'Google.Policies.ThirdParty.' + self._extension_id,
                       'extension')
    self._AddNamespace(namespaces_elem, 'using', 'Google.Policies', 'Google')
    self._AddNamespace(namespaces_elem, 'using', 'Microsoft.Policies.Windows',
                       'windows')
    resources_elem = self._AddElement(root_elem, 'resources')
    self._SetAttribute(resources_elem, 'minRequiredRevision', '1.0')
    supported_on_elem = self._AddElement(root_elem, 'supportedOn')
    definitions_elem = self._AddElement(supported_on_elem, 'definitions')
    definition_elem = self._AddElement(definitions_elem, 'definition')
    self._SetAttribute(definition_elem, 'displayName',
                       'Microsoft Windows 7 or later', 'SUPPORTED_WIN7')
    self._SetAttribute(definition_elem, 'name', 'SUPPORTED_WIN7')
    self.categories_elem_ = self._AddElement(root_elem, 'categories')
    self._policies_elem = self._AddElement(root_elem, 'policies')
def _BeginAdmxTemplate ( self ) : dom_impl = minidom . getDOMImplementation ( '' ) self . _admx_doc = dom_impl . createDocument ( None , 'policyDefinitions' , None ) root_elem = self . _admx_doc . documentElement self . _SetAttribute ( root_elem , 'revision' , '1.0' ) self . _SetAttribute ( root_elem , 'schemaVersion' , '1.0' ) namespaces_elem = self . _AddElement ( root_elem , 'policyNamespaces' ) self . _AddNamespace ( namespaces_elem , 'target' , 'Google.Policies.ThirdParty.' + self . _extension_id , 'extension' ) self . _AddNamespace ( namespaces_elem , 'using' , 'Google.Policies' , 'Google' ) self . _AddNamespace ( namespaces_elem , 'using' , 'Microsoft.Policies.Windows' , 'windows' ) resources_elem = self . _AddElement ( root_elem , 'resources' ) self . _SetAttribute ( resources_elem , 'minRequiredRevision' , '1.0' ) supported_on_elem = self . _AddElement ( root_elem , 'supportedOn' ) definitions_elem = self . _AddElement ( supported_on_elem , 'definitions' ) definition_elem = self . _AddElement ( definitions_elem , 'definition' ) self . _SetAttribute ( definition_elem , 'displayName' , 'Microsoft Windows 7 or later' , 'SUPPORTED_WIN7' ) self . _SetAttribute ( definition_elem , 'name' , 'SUPPORTED_WIN7' ) self . categories_elem_ = self . _AddElement ( root_elem , 'categories' ) self . _policies_elem = self . _AddElement ( root_elem , 'policies' )
Writes the header of the ADMX doc.
Writes the header of the ADMX doc .
'''
    Writes the header of the ADMX doc.

    '''
self