def public_lsh_restore_flow(self, include_all_version=False, wait_for_export_completed=True):
     time.sleep(2)
     browse_app = application.Application().connect(title=u'Browse For Folder', found_index=0)
     browse_folder = browse_app.Window_(title=u'Browse For Folder', found_index=0)
     if PlatformHelper().is_win7():
         browse_folder.child_window(title="Tree View").GetItem([u'Desktop', u'Computer']).Click()
         time.sleep(1)
         browse_folder.child_window(title="Tree View").GetItem([u'Desktop', u'Computer', u'OSDisk (C:)']).Click()
         time.sleep(1)
         browse_folder.child_window(title="Tree View").GetItem(
             [u'Desktop', u'Computer', u'OSDisk (C:)', u'auto_restores']).Click()
         time.sleep(1)
     else:
         browse_folder.child_window(title="Tree View").GetItem([u'Desktop', u'This PC']).Click()
         time.sleep(1)
         browse_folder.child_window(title="Tree View").GetItem([u'Desktop', u'This PC', u'Windows (C:)']).Click()
         time.sleep(1)
         browse_folder.child_window(title="Tree View").GetItem(
             [u'Desktop', u'This PC', u'Windows (C:)', u'auto_restores']).Click()
         time.sleep(1)
     browse_folder.OK.Click()
     if include_all_version:
         self.restore_manager.CheckBox.toggle()
     self.restore_manager.child_window(title="Start", control_type="Button").click()
     if wait_for_export_completed is True:
         self.wait_for_export_completed()
 def public_restore_flow(self, overwrite=False):
     if self.app == None:
         self.app = self.conn_app
     if self.restore_manager == None:
         self.restore_manager = self.app.Window_(
             title=u'Mozy Restore Manager', found_index=0)
     self.get_file_size()
     win32api.SetCursorPos((0, 0))
     browse_folder = self.app.Window_(title=u'Browse For Folder',
                                      found_index=0)
     if PlatformHelper().is_win7():
         browse_folder.child_window(title="Tree View").GetItem(
             [u'Desktop', u'Computer']).Click()
         time.sleep(1)
         browse_folder.child_window(title="Tree View").GetItem(
             [u'Desktop', u'Computer', u'OSDisk (C:)']).Click()
         time.sleep(1)
         browse_folder.child_window(title="Tree View").GetItem(
             [u'Desktop', u'Computer', u'OSDisk (C:)',
              u'auto_restores']).Click()
         time.sleep(1)
     else:
         browse_folder.child_window(title="Tree View").GetItem(
             [u'Desktop', u'This PC']).Click()
         time.sleep(1)
         browse_folder.child_window(title="Tree View").GetItem(
             [u'Desktop', u'This PC', u'Windows (C:)']).Click()
         time.sleep(1)
         browse_folder.child_window(title="Tree View").GetItem(
             [u'Desktop', u'This PC', u'Windows (C:)',
              u'auto_restores']).Click()
         time.sleep(1)
     browse_folder.OK.Click()
     if overwrite:
         self.restore_manager.CheckBox.Click()
     self.restore_manager.child_window(title="&Next >").Click()
     self.restore_manager.child_window(title="Finish").Click()