components/policy/tools/template_writers/writers/admx_writer.py
def _AddCategories(self, categories):
    '''Generates the ADMX "categories" element and adds it to the categories
    main node. The "categories" element defines the category for the policies
    defined in this ADMX document. Here is an example of an ADMX "categories"
    element:

    <categories>
      <category displayName="$(string.googlechrome)" name="googlechrome">
        <parentCategory ref="Google:Cat_Google"/>
      </category>
    </categories>

    Args:
      categories_path: The categories path e.g. ['google', 'googlechrome']. For
        each level in the path a "category" element will be generated, unless
        the level contains a ':', in which case it is treated as external
        references and no element is generated. Except for the root level, each
        level refers to its parent. Since the root level category has no parent
        it does not require a parent reference.
    '''
    category_name = None
    for category in categories:
      parent_category_name = category_name
      category_name = category
      if (":" not in category_name):
        self._AddCategory(self._categories_elem, category_name,
                          self._AdmlString(category_name), parent_category_name)
Generates the ADMX "categories" element and adds it to the categories
    main node. The "categories" element defines the category for the policies
    defined in this ADMX document. Here is an example of an ADMX "categories"
    element:

    <categories>
      <category displayName="$(string.googlechrome)" name="googlechrome">
        <parentCategory ref="Google:Cat_Google"/>
      </category>
    </categories>

    Args:
      categories_path: The categories path e.g. ['google', 'googlechrome']. For
        each level in the path a "category" element will be generated, unless
        the level contains a ':', in which case it is treated as external
        references and no element is generated. Except for the root level, each
        level refers to its parent. Since the root level category has no parent
        it does not require a parent reference.
    
Generates the ADMX "categories" element and adds it to the categories
main node. The "categories" element defines the category for the policies
defined in this ADMX document. Here is an example of an ADMX "categories"
element.


Generates the ADMX " categories " element and adds it to the categories main node . The " categories " element defines the category for the policies defined in this ADMX document . Here is an example of an ADMX " categories " element .
def _AddCategories(self, categories):
    category_name = None
    for category in categories:
      parent_category_name = category_name
      category_name = category
      if (":" not in category_name):
        self._AddCategory(self._categories_elem, category_name,
                          self._AdmlString(category_name), parent_category_name)
def _AddCategories ( self , categories ) : category_name = None for category in categories : parent_category_name = category_name category_name = category if ( ":" not in category_name ) : self . _AddCategory ( self . _categories_elem , category_name , self . _AdmlString ( category_name ) , parent_category_name )
Generates the ADMX "categories" element and adds it to the categories
main node.
Generates the ADMX " categories " element and adds it to the categories main node .
'''Generates the ADMX "categories" element and adds it to the categories
    main node. The "categories" element defines the category for the policies
    defined in this ADMX document. Here is an example of an ADMX "categories"
    element:

    <categories>
      <category displayName="$(string.googlechrome)" name="googlechrome">
        <parentCategory ref="Google:Cat_Google"/>
      </category>
    </categories>

    Args:
      categories_path: The categories path e.g. ['google', 'googlechrome']. For
        each level in the path a "category" element will be generated, unless
        the level contains a ':', in which case it is treated as external
        references and no element is generated. Except for the root level, each
        level refers to its parent. Since the root level category has no parent
        it does not require a parent reference.
    '''
self
categories
categories_path
The categories path e.g. ['google', 'googlechrome']. For
each level in the path a "category" element will be generated, unless
the level contains a ':', in which case it is treated as external
references and no element is generated. Except for the root level, each
level refers to its parent. Since the root level category has no parent
it does not require a parent reference.
The categories path e . g . [ ' google ' ' googlechrome ' ] . For each level in the path a " category " element will be generated unless the level contains a ' : ' in which case it is treated as external references and no element is generated . Except for the root level each level refers to its parent . Since the root level category has no parent it does not require a parent reference .