add function normalize_family to templates
This commit is contained in:
parent
d86744d1cf
commit
5952a8d759
1 changed files with 4 additions and 2 deletions
|
@ -38,6 +38,7 @@ from tiramisu.error import PropertiesOptionError
|
||||||
from .config import patch_dir
|
from .config import patch_dir
|
||||||
from .error import FileNotFound, TemplateError, TemplateDisabled
|
from .error import FileNotFound, TemplateError, TemplateDisabled
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
|
from .utils import normalize_family
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
@ -120,8 +121,9 @@ class CheetahTemplate(ChtTemplate):
|
||||||
"""
|
"""
|
||||||
ChtTemplate.__init__(self, file=filename,
|
ChtTemplate.__init__(self, file=filename,
|
||||||
searchList=[context, eosfunc, {'is_defined' : IsDefined(context),
|
searchList=[context, eosfunc, {'is_defined' : IsDefined(context),
|
||||||
'creole_client' : CreoleClient(config),
|
# 'creole_client' : CreoleClient(config),
|
||||||
'current_container':CreoleGet(current_container),
|
# 'current_container':CreoleGet(current_container),
|
||||||
|
'normalize_family': normalize_family,
|
||||||
'rougail_filename': destfilename
|
'rougail_filename': destfilename
|
||||||
}])
|
}])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue