Example #1
0
def write_shedule_dict(d):
    lg.out(8, 'os_windows_update.write_shedule_dict')
    if d is None or not check_shedule_dict_correct(d):
        return
    old = string_to_shedule(settings.getUpdatesSheduleData())
    d['lasttime'] = old.get('lasttime', '')
    settings.setUpdatesSheduleData(shedule_to_string(d))
    if 'mode' in d:
        settings.setUpdatesMode(d['mode'])
def write_shedule_dict(d):
    lg.out(8, 'os_windows_update.write_shedule_dict')
    if d is None or not check_shedule_dict_correct(d):
        return
    old = string_to_shedule(settings.getUpdatesSheduleData())
    d['lasttime'] = old.get('lasttime', '')
    settings.setUpdatesSheduleData(shedule_to_string(d))
    if 'mode' in d:
        settings.setUpdatesMode(d['mode'])