[templates] Dialogue-ization

This commit is contained in:
Valentin Samir 2014-11-23 17:14:35 +01:00
parent d8bac8d47e
commit 1cd492f974

View file

@ -98,7 +98,9 @@ def template(dialog=False):
oldstyle = style
oldtableau = tableau
newTableau = lambda *args,**kwargs: oldtableau(*args,dialog=dialog,**kwargs)
tableau = newTableau
newStyle = lambda *args,**kwargs:oldstyle(*args,dialog=dialog,**kwargs)
style = newStyle
template_path = '/usr/scripts/lc_ldap/printing/templates/'
templateLoader = jinja2.FileSystemLoader( searchpath=["/", template_path] )
templateEnv = jinja2.Environment( loader=templateLoader, trim_blocks=True )