From ceec7e17eeaecf4290e17f19bf37f299dae0f754 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sun, 1 Jan 2006 21:08:24 +0000 Subject: [PATCH 1/1] reduce size of config file from 100k to some bytes... we just save non default values now which arises some problems... but size matters :) --- lib/python/Components/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 82a5d6d8..51e753ca 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -547,7 +547,8 @@ class configElement: def reload(self): self.loadData() def save(self): - configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value)) + if self.defaultValue != self.value: + configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value)) class configElement_nonSave(configElement): def __init__(self, configPath, control, defaultValue, vals): -- 2.30.2