summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star
diff options
context:
space:
mode:
authorJavier Fernandez <jfernandez@igalia.com>2013-05-03 13:34:52 +0000
committerJavier Fernandez <jfernandez@igalia.com>2013-05-08 09:36:38 +0000
commit8a9e404be28d10a2f7e4e40abb5a0f79066b767d (patch)
tree40f5705d363a92c9b039b7026589b3732cb04362 /wizards/com/sun/star
parent63339c48f577d25ece59c075e450c86f33ceb560 (diff)
PyWebWizard: Fixing bugs and implementation of mising features.
Setting the parent GroupConfig root to the children. Change-Id: Ie066c76d4c14d9adc3e09da494aef90cf50596d5
Diffstat (limited to 'wizards/com/sun/star')
-rw-r--r--wizards/com/sun/star/wizards/common/ConfigGroup.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/common/ConfigGroup.py b/wizards/com/sun/star/wizards/common/ConfigGroup.py
index bda4f96443c8..bd059816061d 100644
--- a/wizards/com/sun/star/wizards/common/ConfigGroup.py
+++ b/wizards/com/sun/star/wizards/common/ConfigGroup.py
@@ -20,6 +20,11 @@ from .Configuration import Configuration
class ConfigGroup(object):
+ root = None
+
+ def __init__(self):
+ self.root = None
+
def writeConfiguration(self, configurationView, param):
for name,data in inspect.getmembers(self):
if name.startswith(param):
@@ -43,9 +48,13 @@ class ConfigGroup(object):
propertyName = field[len(prefix):]
child = getattr(self, field)
if isinstance(child, ConfigGroup):
+ child.setRoot(self.root);
child.readConfiguration(configView.getByName(propertyName),
prefix)
else:
value = configView.getByName(propertyName)
if value is not None:
setattr(self,field, value)
+
+ def setRoot(self, newRoot):
+ self.root = newRoot