convert path for DynOptionDescription to valid path
This commit is contained in:
parent
f062d9f30a
commit
f19a427f46
1 changed files with 8 additions and 1 deletions
|
@ -21,9 +21,16 @@ from .i18n import _
|
||||||
from .xmlreflector import HIGH_COMPATIBILITY
|
from .xmlreflector import HIGH_COMPATIBILITY
|
||||||
#from . import eosfunc
|
#from . import eosfunc
|
||||||
from .objspace import CreoleObjSpace
|
from .objspace import CreoleObjSpace
|
||||||
|
from .utils import normalize_family
|
||||||
import imp
|
import imp
|
||||||
|
|
||||||
|
|
||||||
|
class ConvertDynOptionDescription(DynOptionDescription):
|
||||||
|
def convert_suffix_to_path(self, suffix):
|
||||||
|
return normalize_family(suffix,
|
||||||
|
check=False)
|
||||||
|
|
||||||
|
|
||||||
class CreoleLoaderError(Exception):
|
class CreoleLoaderError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -539,7 +546,7 @@ class Family(Common):
|
||||||
del self.attrib['dynamic']
|
del self.attrib['dynamic']
|
||||||
self.attrib['suffixes'] = Calculation(self.eosfunc.calc_value,
|
self.attrib['suffixes'] = Calculation(self.eosfunc.calc_value,
|
||||||
Params((ParamOption(dynamic),)))
|
Params((ParamOption(dynamic),)))
|
||||||
option = DynOptionDescription(**self.attrib)
|
option = ConvertDynOptionDescription(**self.attrib)
|
||||||
elif not self.is_leader:
|
elif not self.is_leader:
|
||||||
option = OptionDescription(**self.attrib)
|
option = OptionDescription(**self.attrib)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue