components/policy/tools/template_writers/writers/admx_writer.py
def _AddPolicyNamespaces(self, parent, prefix, namespace):
    '''Generates the ADMX "policyNamespace" element and adds the elements to the
    passed parent element. The namespace of the generated ADMX document is
    define via the ADMX "target" element. Used namespaces are declared with an
    ADMX "using" element. ADMX "target" and "using" elements are children of the
    ADMX "policyNamespace" element.

    Args:
      parent: The parent node to which all generated elements are added.
      prefix: A logical name that can be used in the generated ADMX document to
        refere to this namespace.
      namespace: Namespace of the generated ADMX document.
    '''
    policy_namespaces_elem = self.AddElement(parent, 'policyNamespaces')
    attributes = {
        'prefix': prefix,
        'namespace': namespace,
    }
    self.AddElement(policy_namespaces_elem, 'target', attributes)
    if 'admx_using_namespaces' in self.config:
      prefix_namespace_map = self.config['admx_using_namespaces']
      for prefix in prefix_namespace_map:
        attributes = {
            'prefix': prefix,
            'namespace': prefix_namespace_map[prefix],
        }
        self.AddElement(policy_namespaces_elem, 'using', attributes)
    attributes = {
        'prefix': 'windows',
        'namespace': 'Microsoft.Policies.Windows',
    }
    self.AddElement(policy_namespaces_elem, 'using', attributes)
Generates the ADMX "policyNamespace" element and adds the elements to the
    passed parent element. The namespace of the generated ADMX document is
    define via the ADMX "target" element. Used namespaces are declared with an
    ADMX "using" element. ADMX "target" and "using" elements are children of the
    ADMX "policyNamespace" element.

    Args:
      parent: The parent node to which all generated elements are added.
      prefix: A logical name that can be used in the generated ADMX document to
        refere to this namespace.
      namespace: Namespace of the generated ADMX document.
    
Generates the ADMX "policyNamespace" element and adds the elements to the
passed parent element. The namespace of the generated ADMX document is
define via the ADMX "target" element. Used namespaces are declared with an
ADMX "using" element.
Generates the ADMX " policyNamespace " element and adds the elements to the passed parent element . The namespace of the generated ADMX document is define via the ADMX " target " element . Used namespaces are declared with an ADMX " using " element .
def _AddPolicyNamespaces(self, parent, prefix, namespace):
    policy_namespaces_elem = self.AddElement(parent, 'policyNamespaces')
    attributes = {
        'prefix': prefix,
        'namespace': namespace,
    }
    self.AddElement(policy_namespaces_elem, 'target', attributes)
    if 'admx_using_namespaces' in self.config:
      prefix_namespace_map = self.config['admx_using_namespaces']
      for prefix in prefix_namespace_map:
        attributes = {
            'prefix': prefix,
            'namespace': prefix_namespace_map[prefix],
        }
        self.AddElement(policy_namespaces_elem, 'using', attributes)
    attributes = {
        'prefix': 'windows',
        'namespace': 'Microsoft.Policies.Windows',
    }
    self.AddElement(policy_namespaces_elem, 'using', attributes)
def _AddPolicyNamespaces ( self , parent , prefix , namespace ) : policy_namespaces_elem = self . AddElement ( parent , 'policyNamespaces' ) attributes = { 'prefix' : prefix , 'namespace' : namespace , } self . AddElement ( policy_namespaces_elem , 'target' , attributes ) if 'admx_using_namespaces' in self . config : prefix_namespace_map = self . config [ 'admx_using_namespaces' ] for prefix in prefix_namespace_map : attributes = { 'prefix' : prefix , 'namespace' : prefix_namespace_map [ prefix ] , } self . AddElement ( policy_namespaces_elem , 'using' , attributes ) attributes = { 'prefix' : 'windows' , 'namespace' : 'Microsoft.Policies.Windows' , } self . AddElement ( policy_namespaces_elem , 'using' , attributes )
Generates the ADMX "policyNamespace" element and adds the elements to the
passed parent element.
Generates the ADMX " policyNamespace " element and adds the elements to the passed parent element .
'''Generates the ADMX "policyNamespace" element and adds the elements to the
    passed parent element. The namespace of the generated ADMX document is
    define via the ADMX "target" element. Used namespaces are declared with an
    ADMX "using" element. ADMX "target" and "using" elements are children of the
    ADMX "policyNamespace" element.

    Args:
      parent: The parent node to which all generated elements are added.
      prefix: A logical name that can be used in the generated ADMX document to
        refere to this namespace.
      namespace: Namespace of the generated ADMX document.
    '''
self
parent
The parent node to which all generated elements are added.
The parent node to which all generated elements are added .
prefix
A logical name that can be used in the generated ADMX document to
refere to this namespace.
A logical name that can be used in the generated ADMX document to refere to this namespace .
namespace
Namespace of the generated ADMX document.
Namespace of the generated ADMX document .