CransLdapObject._id -> CransLdapObject.oid
This commit is contained in:
parent
d7800bbfb1
commit
9388e1d217
2 changed files with 2 additions and 2 deletions
|
@ -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']
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue