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