better opt support
This commit is contained in:
parent
4d565f811c
commit
7545e6105d
|
@ -6,7 +6,7 @@ from .annotator import ERASED_ATTRIBUTES, CONVERT_OPTION
|
||||||
|
|
||||||
|
|
||||||
FUNC_TO_DICT = []
|
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
|
class Root(): # pylint: disable=R0903
|
||||||
|
@ -276,7 +276,7 @@ class Variable(Common):
|
||||||
if self.option_name is None:
|
if self.option_name is None:
|
||||||
self.populate_attrib()
|
self.populate_attrib()
|
||||||
if self.object_type == 'SymLinkOption':
|
if self.object_type == 'SymLinkOption':
|
||||||
self.attrib['opt'] = self.attrib['opt'].reflector_object.get()
|
self.attrib['opt'] = self.elt.opt.reflector_object.get()
|
||||||
else:
|
else:
|
||||||
self.parse_children()
|
self.parse_children()
|
||||||
attrib = self.get_attrib()
|
attrib = self.get_attrib()
|
||||||
|
@ -452,7 +452,7 @@ class Family(Common):
|
||||||
"""
|
"""
|
||||||
if not self.option_name:
|
if not self.option_name:
|
||||||
self.populate_attrib()
|
self.populate_attrib()
|
||||||
self.parse_children()
|
self.parse_properties()
|
||||||
self.option_name = self.elt.reflector_name
|
self.option_name = self.elt.reflector_name
|
||||||
object_name = self.get_object_name()
|
object_name = self.get_object_name()
|
||||||
attrib = self.get_attrib() + \
|
attrib = self.get_attrib() + \
|
||||||
|
@ -473,7 +473,7 @@ class Family(Common):
|
||||||
else:
|
else:
|
||||||
self.attrib[key] = value
|
self.attrib[key] = value
|
||||||
|
|
||||||
def parse_children(self):
|
def parse_properties(self):
|
||||||
"""parse current children
|
"""parse current children
|
||||||
"""
|
"""
|
||||||
if 'properties' in self.attrib:
|
if 'properties' in self.attrib:
|
||||||
|
|
Loading…
Reference in New Issue