def getRestartActionForUpdateList(update_list):
    '''Returns a localized overall restart action message for the list of updates'''
    if not update_list:
        return ''
    if [item for item in update_list if 'Restart' in item.get('RestartAction', '')]:
        # found at least one item containing 'Restart' in its RestartAction
        return NSLocalizedString(u"Restart Required", u"Restart Required title")
    if ([item for item in update_list if 'Logout' in item.get('RestartAction', '')]
        or munki.installRequiresLogout()):
        # found at least one item containing 'Logout' in its RestartAction
        return NSLocalizedString(u"Logout Required", u"Logout Required title")
    else:
        return ''
dataset/ETHPy150Open munki/munki/code/apps/Managed Software Center/Managed Software Center/mschtml.py/getRestartActionForUpdateList/original