From 84cfaac84e14c691f91f0b2618d07ed803d78f3d Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Tue, 2 Dec 2014 01:59:33 +0100 Subject: [PATCH] =?UTF-8?q?[printing]=20blacklist=20est=20le=20nom=20d'une?= =?UTF-8?q?=20methode,=20on=20utilise=20blacklist=5Flen=20comme=20param?= =?UTF-8?q?=C3=A8tre=20pour=20sprint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- printing/templates/templates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printing/templates/templates.py b/printing/templates/templates.py index 4b5dd46..bce7891 100644 --- a/printing/templates/templates.py +++ b/printing/templates/templates.py @@ -245,9 +245,9 @@ def blacklist(blacklist, params): params['o']=blacklist return template().get_template("blacklist").render(params) -def sprint(object, historique=5, blacklist=5, **params): +def sprint(object, historique=5, blacklist_len=5, **params): from lc_ldap import objets, attributs - params.update({'historique':historique, "blacklist":blacklist}) + params.update({'historique':historique, "blacklist":blacklist_len}) if isinstance(object, objets.machine): return machine(object, params) elif isinstance(object, objets.adherent):