From: Nicolas Boichat Date: Thu, 29 Apr 2004 21:05:00 +0000 (+0000) Subject: using the right restore command. X-Git-Tag: Release-1.34.3~76 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=760d7e4e2ed3fc86262be68835059d935445941c;p=bacula%2Fbacula using the right restore command. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1324 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/wx-console/TODO b/bacula/src/wx-console/TODO index 509558368d..5f0b13a20c 100644 --- a/bacula/src/wx-console/TODO +++ b/bacula/src/wx-console/TODO @@ -9,7 +9,11 @@ wxbMainFrame : Add some text in front of the command window such as wxbRestorePanel : Reconsider start button's labels. -wxbRestorePanel : Implement cancel button when configuring +wxbRestorePanel : Implement cancel button when first configuring + +wxbRestorePanel : Change defaults values when Job Name changes (first configure) + +wxbRestorePanel : Add titles to configuration panel general : Show nice messages when errors occurs. diff --git a/bacula/src/wx-console/wxbrestorepanel.cpp b/bacula/src/wx-console/wxbrestorepanel.cpp index 27a3af232d..3a571ef953 100644 --- a/bacula/src/wx-console/wxbrestorepanel.cpp +++ b/bacula/src/wx-console/wxbrestorepanel.cpp @@ -529,18 +529,23 @@ void wxbRestorePanel::CmdStart() { }*/ wxbMainFrame::GetInstance()->SetStatusText("Building restore tree..."); - WaitForPrompt("restore\n"); + WaitForPrompt(wxString("restore") << + " client=\"" << configPanel->GetRowString("Client") << + "\" fileset=\"" << configPanel->GetRowString("Fileset") << + "\" pool=\"" << configPanel->GetRowString("Pool") << + "\" storage=\"" << configPanel->GetRowString("Storage") << "\"\n"); WaitForPrompt("6\n"); - wxbPromptParser *pp = WaitForPrompt(wxString() << configPanel->GetRowString("Before") << "\n", true); + //WaitForEnd(); + /*wxbPromptParser *pp = WaitForPrompt(wxString() << configPanel->GetRowString("Before") << "\n", true); int client = pp->getChoices()->Index(configPanel->GetRowString("Client")); if (client == wxNOT_FOUND) { wxbMainFrame::GetInstance()->SetStatusText("Failed to find the selected client."); return; } - delete pp; + delete pp;*/ wxbDataTokenizer* dt = new wxbDataTokenizer(true); - wxbTableParser* tableparser = CreateAndWaitForParser(wxString() << client << "\n"); + wxbTableParser* tableparser = CreateAndWaitForParser(wxString() << configPanel->GetRowString("Before") << "\n"); int tot = 0; long l; wxString str;