better opt support

This commit is contained in:
Emmanuel Garette 2021-01-23 12:04:58 +01:00
parent 4d565f811c
commit 7545e6105d
1 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ from .annotator import ERASED_ATTRIBUTES, CONVERT_OPTION
FUNC_TO_DICT = []
ATTRIBUTES_ORDER = ('name', 'doc', 'default', 'multi', 'properties', 'min_number', 'max_number', 'dynamic', 'opt')
ATTRIBUTES_ORDER = ('name', 'doc', 'default', 'multi', 'properties', 'min_number', 'max_number', 'dynamic')
class Root(): # pylint: disable=R0903
@ -276,7 +276,7 @@ class Variable(Common):
if self.option_name is None:
self.populate_attrib()
if self.object_type == 'SymLinkOption':
self.attrib['opt'] = self.attrib['opt'].reflector_object.get()
self.attrib['opt'] = self.elt.opt.reflector_object.get()
else:
self.parse_children()
attrib = self.get_attrib()
@ -452,7 +452,7 @@ class Family(Common):
"""
if not self.option_name:
self.populate_attrib()
self.parse_children()
self.parse_properties()
self.option_name = self.elt.reflector_name
object_name = self.get_object_name()
attrib = self.get_attrib() + \
@ -473,7 +473,7 @@ class Family(Common):
else:
self.attrib[key] = value
def parse_children(self):
def parse_properties(self):
"""parse current children
"""
if 'properties' in self.attrib: