ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class SystemRestoreImpl.SystemRestoreImpl(system, config)

This calss is the public interface by which a <no title> can access the system restore tool. This class abstracts away the actual os being used.

Parameters:

  • system: a <no title> object to communicate with the target system

  • config: a <no title> object hold all our configuration

complete()

Complete a system restoration by handling confirmation dialogs

open()

Open the Windows System Restore tool.

open_tools_menu(validate_img)

Open the ‘Accessories->System Tools’ menu

restore()

Restore to the currently selected restore point in the Windows System Restore tool

select(date=None, name=None)

Select a restore point in the Windows System Restore tool.

SystemRestoreImpl.get_system_restore(system, config, rtype)

This is the Factory method that creates an appropriate instance of the windows system restore tool based on either the config object or the specified type.

Parameters:

  • system: a <no title> object to communicate with the remote system

  • config: a <no title> object hold all our configuration

  • rtype: a string contining the type to use overriding that in the config object

Return: a concrete instance of SystemRestoreImpl or None if no suitable type can be found