get_type not exists for optiondescription, change it to impl_get_group_type
This commit is contained in:
parent
280d2ebd0a
commit
ba5cc57166
1 changed files with 5 additions and 2 deletions
|
@ -159,7 +159,7 @@ class _TiramisuOptionOptionDescription(CommonTiramisuOption):
|
||||||
return self._option_bag.option
|
return self._option_bag.option
|
||||||
|
|
||||||
def type(self):
|
def type(self):
|
||||||
return self._option_bag.option.get_type()
|
return self._option_bag.option.impl_get_group_type()
|
||||||
|
|
||||||
def isleadership(self):
|
def isleadership(self):
|
||||||
"""Test if option is a leader or a follower"""
|
"""Test if option is a leader or a follower"""
|
||||||
|
@ -289,6 +289,9 @@ class _TiramisuOptionOption(_TiramisuOptionOptionDescription):
|
||||||
option = self._option_bag.option
|
option = self._option_bag.option
|
||||||
return option.impl_get_validator()
|
return option.impl_get_validator()
|
||||||
|
|
||||||
|
def type(self):
|
||||||
|
return self._option_bag.option.get_type()
|
||||||
|
|
||||||
def pattern(self) -> str:
|
def pattern(self) -> str:
|
||||||
option = self._option_bag.option
|
option = self._option_bag.option
|
||||||
type = option.get_type()
|
type = option.get_type()
|
||||||
|
@ -1563,7 +1566,7 @@ class Config(TiramisuAPI):
|
||||||
class MetaConfig(TiramisuAPI):
|
class MetaConfig(TiramisuAPI):
|
||||||
"""MetaConfig object that enables us to handle the sub configuration's options"""
|
"""MetaConfig object that enables us to handle the sub configuration's options"""
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
children,
|
children: 'Config'=[],
|
||||||
session_id: Union[str, None]=None,
|
session_id: Union[str, None]=None,
|
||||||
persistent: bool=False,
|
persistent: bool=False,
|
||||||
optiondescription: Optional[OptionDescription]=None,
|
optiondescription: Optional[OptionDescription]=None,
|
||||||
|
|
Loading…
Reference in a new issue