Beispiel #1
0
def read_shedule_dict():
    lg.out(8, 'os_windows_update.read_shedule_dict')
    # d = bpio._read_dict(settings.UpdateSheduleFilename())
    # if d is None or not check_shedule_dict_correct(d):
    #     d = make_blank_shedule()
    d = string_to_shedule(settings.getUpdatesSheduleData())
    d['mode'] = settings.getUpdatesMode()
    return d
def read_shedule_dict():
    lg.out(8, 'os_windows_update.read_shedule_dict')
    # d = bpio._read_dict(settings.UpdateSheduleFilename())
    # if d is None or not check_shedule_dict_correct(d):
    #     d = make_blank_shedule()
    d = string_to_shedule(settings.getUpdatesSheduleData())
    d['mode'] = settings.getUpdatesMode()
    return d
Beispiel #3
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'])