From 1cd492f974de7ed5ba240bed0601f9d5dfb134b3 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sun, 23 Nov 2014 17:14:35 +0100 Subject: [PATCH] [templates] Dialogue-ization --- printing/templates/templates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/printing/templates/templates.py b/printing/templates/templates.py index 3c723ef..4b5dd46 100644 --- a/printing/templates/templates.py +++ b/printing/templates/templates.py @@ -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 )