def _GenerateCategories(apps):
    'Generates category string for each of the specified apps.\n\n    Args:\n      apps: list of tuples containing information about the apps.\n\n    Returns:\n      String containing concatenated copies of the category string for each app\n      in apps, each populated with the appropriate app-specific strings.\n    '
    admx_app_category_template = '    <category name="Cat_%(AppLegalId)s"\n        displayName="$(string.Cat_%(AppLegalId)s)">\n      <parentCategory ref="Cat_Applications" />\n    </category>'
    app_category_list = []
    for app in apps:
        app_name = app[0]
        app_category_list.append((admx_app_category_template % {'AppLegalId': _CreateLegalIdentifier(app_name)}))
    return (ADMX_CATEGORIES % {'AppCategorList': '\n'.join(app_category_list)})
Generates category string for each of the specified apps.

Args:
  apps: list of tuples containing information about the apps.

Returns:
  String containing concatenated copies of the category string for each app
  in apps, each populated with the appropriate app-specific strings.
def _GenerateCategories(apps):
    'Generates category string for each of the specified apps.\n\n    Args:\n      apps: list of tuples containing information about the apps.\n\n    Returns:\n      String containing concatenated copies of the category string for each app\n      in apps, each populated with the appropriate app-specific strings.\n    '
    admx_app_category_template = '    <category name="Cat_%(AppLegalId)s"\n        displayName="$(string.Cat_%(AppLegalId)s)">\n      <parentCategory ref="Cat_Applications" />\n    </category>'
    app_category_list = []
    for app in apps:
        app_name = app[0]
        app_category_list.append((admx_app_category_template % {'AppLegalId': _CreateLegalIdentifier(app_name)}))
    return (ADMX_CATEGORIES % {'AppCategorList': '\n'.join(app_category_list)})