[templates] Dialogue-ization
This commit is contained in:
parent
d8bac8d47e
commit
1cd492f974
1 changed files with 2 additions and 0 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue