def _GeneratePolicies(apps):
    'Generates policy 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 policy template for each app\n      in apps, each populated with the appropriate app-specific strings.\n    '
    app_policy_list = []
    for app in apps:
        (app_name, app_guid, _, _) = app
        app_policy_list.append((ADMX_APP_POLICY_TEMPLATE % {'AppLegalId': _CreateLegalIdentifier(app_name), 'AppGuid': app_guid, 'RootPolicyKey': MAIN_POLICY_KEY}))
    return (ADMX_POLICIES % {'AppPolicyList': '\n'.join(app_policy_list), 'RootPolicyKey': MAIN_POLICY_KEY})
Generates policy string for each of the specified apps.

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

Returns:
  String containing concatenated copies of the policy template for each app
  in apps, each populated with the appropriate app-specific strings.
def _GeneratePolicies(apps):
    'Generates policy 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 policy template for each app\n      in apps, each populated with the appropriate app-specific strings.\n    '
    app_policy_list = []
    for app in apps:
        (app_name, app_guid, _, _) = app
        app_policy_list.append((ADMX_APP_POLICY_TEMPLATE % {'AppLegalId': _CreateLegalIdentifier(app_name), 'AppGuid': app_guid, 'RootPolicyKey': MAIN_POLICY_KEY}))
    return (ADMX_POLICIES % {'AppPolicyList': '\n'.join(app_policy_list), 'RootPolicyKey': MAIN_POLICY_KEY})