summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/common/ConfigGroup.py
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/common/ConfigGroup.py')
-rw-r--r--wizards/com/sun/star/wizards/common/ConfigGroup.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/wizards/com/sun/star/wizards/common/ConfigGroup.py b/wizards/com/sun/star/wizards/common/ConfigGroup.py
deleted file mode 100644
index 2e0fd9434699..000000000000
--- a/wizards/com/sun/star/wizards/common/ConfigGroup.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from ConfigNode import *
-from Configuration import Configuration
-import traceback
-import inspect
-
-class ConfigGroup(ConfigNode):
-
- def writeConfiguration(self, configurationView, param):
- for name,data in inspect.getmembers(self):
- if name.startswith(param):
- self.writeField( name, configurationView, param)
-
- def writeField(self, field, configView, prefix):
- propertyName = field[len(prefix):]
- child = getattr(self, field)
- if isinstance(child, ConfigNode):
- child.writeConfiguration(configView.getByName(propertyName),
- prefix)
- else:
- setattr(configView,propertyName,getattr(self,field))
-
- def readConfiguration(self, configurationView, param):
- for name,data in inspect.getmembers(self):
- if name.startswith(param):
- self.readField( name, configurationView, param)
-
- def readField(self, field, configView, prefix):
- propertyName = field[len(prefix):]
- child = getattr(self, field)
- if isinstance(child, ConfigNode):
- child.root = self.root
- child.readConfiguration(configView.getByName(propertyName),
- prefix)
- else:
- setattr(self,field,configView.getByName(propertyName))