From 1750e13f8bcbcba59a2e5c07bcc232cbc300ea64 Mon Sep 17 00:00:00 2001
From: Francois Henrotte <francois.henrotte@ulg.ac.be>
Date: Wed, 12 Jun 2013 20:30:04 +0000
Subject: [PATCH] do not save on disk parameters with attribute notInDb

---
 Common/onelab.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Common/onelab.h b/Common/onelab.h
index e528447c42..02f11c8df2 100644
--- a/Common/onelab.h
+++ b/Common/onelab.h
@@ -797,8 +797,10 @@ namespace onelab{
       _getAllParameters(ps);
       for(std::set<parameter*, parameterLessThan>::const_iterator it = ps.begin();
           it != ps.end(); it++)
-        if(client.empty() || (*it)->hasClient(client))
-          s.push_back((*it)->toChar());
+        if(client.empty() || (*it)->hasClient(client)){
+	  if((*it)->getAttribute("NotInDb") != "True")
+	    s.push_back((*it)->toChar());
+	}
       return s;
     }
     // unserialize the parameter space
-- 
GitLab