From 8a9e404be28d10a2f7e4e40abb5a0f79066b767d Mon Sep 17 00:00:00 2001 From: Javier Fernandez Date: Fri, 3 May 2013 13:34:52 +0000 Subject: PyWebWizard: Fixing bugs and implementation of mising features. Setting the parent GroupConfig root to the children. Change-Id: Ie066c76d4c14d9adc3e09da494aef90cf50596d5 --- wizards/com/sun/star/wizards/common/ConfigGroup.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3