From 9388e1d2175b02fd418a779ebf117e609014d76b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sun, 18 Oct 2015 20:05:41 +0200 Subject: [PATCH] CransLdapObject._id -> CransLdapObject.oid --- objets.py | 2 +- printing/templates/facture | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/objets.py b/objets.py index be26b70..6f8b422 100644 --- a/objets.py +++ b/objets.py @@ -207,7 +207,7 @@ class CransLdapObject(object): nvals = [nldif[attr][vals.index(v)] for v in vals] raise EnvironmentError("λv. str(Attr(v)) n'est peut-être pas une projection (ie non idempotente):", attr, nvals, vals) - def _id(self): + def oid(self): """Retourne l'id de l'objet courant""" if isinstance(self, adherent): return self['aid'] diff --git a/printing/templates/facture b/printing/templates/facture index 7aa46db..cd9040c 100644 --- a/printing/templates/facture +++ b/printing/templates/facture @@ -1,4 +1,4 @@ -{{["fid=",o._id().0]|join|coul('bleu')}} {{"À : "|coul('gras')}}{{o.proprio().prenom|join(' ')}} {{o.proprio().nom|join(' ')}} ({{o.proprio()._id().0}}) +{{["fid=",o.oid().0]|join|coul('bleu')}} {{"À : "|coul('gras')}}{{o.proprio().prenom|join(' ')}} {{o.proprio().nom|join(' ')}} ({{o.proprio().oid().0}}) {% if o.article %} {{"Article : "|coul('gras')}} Prix N° Total Commentaire {% set total = [] %}{% for a in o.article %}