def ui_setgroup_config(self, k, v): config['target'][k] = v config.save()
def __init__(self, *args, **kwargs): super(TargetsNode, self).__init__(*args, **kwargs) if not 'target' in config: config['target'] = {} config.save()