Ignore:
Timestamp:
Feb 7, 2014, 2:00:55 PM (10 years ago)
Author:
lemeur
Message:

lecture fichier sauvegarde AML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc

    r485 r488  
    287287  //globalParam_->updateGlobals();
    288288
    289   //  dtmanage_->saveConfiguration(nameOfCase_);
    290   dtmanage_->saveConfiguration(sessionId(),nameOfCase_);
     289  //  dtmanage_->saveConfiguration(sessionId(),nameOfCase_);
    291290
    292291  // en test: j'ajoute la sauvegarde sur .aml
     
    308307  removePathFromConfigName(nameOfCase_);
    309308  cout << " nom sans path " << nameOfCase_ << endl;
    310   removeExtensionFromConfigName(nameOfCase_);
     309    removeExtensionFromConfigName(nameOfCase_, string(".aml"));
     310    //  removeExtensionFromConfigName(nameOfCase_, string(".save"));
    311311  cout << " nom sans extension " << nameOfCase_ << endl;
    312312  if (nameOfCase_ == "") return;
     
    314314  dialogSave_ = NULL;
    315315 
    316   bool test = dtmanage_->restoreElements(fileName);
     316  //  bool test = dtmanage_->restoreElements(fileName);
     317  bool test = dtmanage_->restoreAMLElements(fileName);
    317318  if ( !test ) {
    318319    GWt_dialog restoreWarning(" element restoring", "failure in restoring elements from file : " + fileName , GWt_dialog::Error, false,true);
     
    364365  string nomDuFichier = (uploadFileSelectorWidget_->clientFileName()).toUTF8();
    365366  cout << " fichier client : " << nomDuFichier << endl;
    366   bool test = removeExtensionFromConfigName(nomDuFichier);
     367  bool test = removeExtensionFromConfigName(nomDuFichier, string(".aml"));
    367368  cout << " fichier client sans extension : " << nomDuFichier << endl;
    368369 
     
    371372    console_->addConsoleMessage(string("restauration..."));
    372373     
    373     if ( !dtmanage_->restoreElements(uploadFileSelectorWidget_->spoolFileName()) ) {
     374    if ( !dtmanage_->restoreAMLElements(uploadFileSelectorWidget_->spoolFileName()) ) {
    374375      GWt_dialog restoreWarning(" element restoring", "failure in restoring elements !", GWt_dialog::Error, false,true);
    375376      restoreWarning.exec();
     
    582583}
    583584
    584 bool PspaApplication::removeExtensionFromConfigName(string& config)
     585bool PspaApplication::removeExtensionFromConfigName(string& config, string extension)
    585586{
    586587    //  string configName;
    587     string extension(".save");
     588  //    string extension(".save");
    588589    bool test = true;
    589590    string::size_type nn = config.rfind('.');
Note: See TracChangeset for help on using the changeset viewer.