Changeset 488 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
- Timestamp:
- Feb 7, 2014, 2:00:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
r485 r488 287 287 //globalParam_->updateGlobals(); 288 288 289 // dtmanage_->saveConfiguration(nameOfCase_); 290 dtmanage_->saveConfiguration(sessionId(),nameOfCase_); 289 // dtmanage_->saveConfiguration(sessionId(),nameOfCase_); 291 290 292 291 // en test: j'ajoute la sauvegarde sur .aml … … 308 307 removePathFromConfigName(nameOfCase_); 309 308 cout << " nom sans path " << nameOfCase_ << endl; 310 removeExtensionFromConfigName(nameOfCase_); 309 removeExtensionFromConfigName(nameOfCase_, string(".aml")); 310 // removeExtensionFromConfigName(nameOfCase_, string(".save")); 311 311 cout << " nom sans extension " << nameOfCase_ << endl; 312 312 if (nameOfCase_ == "") return; … … 314 314 dialogSave_ = NULL; 315 315 316 bool test = dtmanage_->restoreElements(fileName); 316 // bool test = dtmanage_->restoreElements(fileName); 317 bool test = dtmanage_->restoreAMLElements(fileName); 317 318 if ( !test ) { 318 319 GWt_dialog restoreWarning(" element restoring", "failure in restoring elements from file : " + fileName , GWt_dialog::Error, false,true); … … 364 365 string nomDuFichier = (uploadFileSelectorWidget_->clientFileName()).toUTF8(); 365 366 cout << " fichier client : " << nomDuFichier << endl; 366 bool test = removeExtensionFromConfigName(nomDuFichier );367 bool test = removeExtensionFromConfigName(nomDuFichier, string(".aml")); 367 368 cout << " fichier client sans extension : " << nomDuFichier << endl; 368 369 … … 371 372 console_->addConsoleMessage(string("restauration...")); 372 373 373 if ( !dtmanage_->restore Elements(uploadFileSelectorWidget_->spoolFileName()) ) {374 if ( !dtmanage_->restoreAMLElements(uploadFileSelectorWidget_->spoolFileName()) ) { 374 375 GWt_dialog restoreWarning(" element restoring", "failure in restoring elements !", GWt_dialog::Error, false,true); 375 376 restoreWarning.exec(); … … 582 583 } 583 584 584 bool PspaApplication::removeExtensionFromConfigName(string& config )585 bool PspaApplication::removeExtensionFromConfigName(string& config, string extension) 585 586 { 586 587 // string configName; 587 string extension(".save");588 // string extension(".save"); 588 589 bool test = true; 589 590 string::size_type nn = config.rfind('.');
Note: See TracChangeset
for help on using the changeset viewer.