def Message(self, filename):
    item_dict = {}
    p = models.PackageInfo.get_by_key_name(filename)

    if p.plist.get('display_name', None):
      item_dict['package_name'] = p.plist.get('display_name', '')
    else:
      item_dict['package_name'] = p.plist.get('name', '')

    minimum_os_version = p.plist.get('minimum_os_version', None)
    maximum_os_version = p.plist.get('maximum_os_version', None)
    item_dict['osx_version_string'] = self.InstallOsTextGenerator(
        minimum_os_version, maximum_os_version)
    install_types = set(p.install_types)
    if 'managed_installs' in install_types:
      item_dict['managed_install'] = True
    else:
      item_dict['managed_install'] = False
    if 'optional_installs' in install_types:
      item_dict['optional_install'] = True
    else:
      item_dict['optional_install'] = False
    if 'managed_updates' in install_types:
      item_dict['managed_update'] = True
    else:
      item_dict['managed_update'] = False

    item_dict['is_unattended'] = p.plist.get('unattended_install', False)
    item_dict['is_unattended_uninstall'] = p.plist.get(
        'unattended_uninstall', False)

    if p.plist.get('force_install_after_date', None):
      force_date_raw = p.plist.get('force_install_after_date', None)
      item_dict['forced_on_date'] = force_date_raw.strftime('%B %d')
      item_dict['is_forced_install'] = True
    else:
      item_dict['is_forced_install'] = False

    if p.plist.get('RestartAction', None) == 'RequireRestart':
      item_dict['restart_required'] = True
    else:
      item_dict['restart_required'] = False

    item_dict['version'] = p.plist['version']
    return item_dict
Generates list of items with report parameters.
dataset/ETHPy150Open google/simian/src/simian/mac/admin/release_report.py/ReleaseReport.Message