From 480bc342cd48896828dcf7443411e59d67aeb2aa Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 30 Sep 2008 16:11:33 +0000 Subject: [PATCH] Conditionally load/save default parameter value from config file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56852 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/scan-view/ScanView.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/scan-view/ScanView.py b/tools/scan-view/ScanView.py index 8ee28f7862..4a9c175ac0 100644 --- a/tools/scan-view/ScanView.py +++ b/tools/scan-view/ScanView.py @@ -130,6 +130,7 @@ class ScanViewServer(BaseHTTPServer.HTTPServer): for r in self.reporters: self.config.add_section(r.getName()) for p in r.getParameters(): + if p.saveConfigValue(): self.config.set(r.getName(), p.getName(), '') # Ignore parse errors @@ -316,6 +317,7 @@ class ScanViewRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): if report != 'None': self.server.config.set('ScanView', 'reporter', reporterIndex) for o in reporter.getParameters(): + if o.saveConfigValue(): name = o.getName() self.server.config.set(reporter.getName(), name, parameters[name])