Affichage des factures

This commit is contained in:
Valentin Samir 2013-11-20 17:18:48 +01:00
parent 2940dae3b8
commit 16deec183d
3 changed files with 24 additions and 0 deletions

View file

@ -70,6 +70,10 @@ def adherent(adherent, params):
params=proprio(adherent, params)
return template().get_template("adherent").render(params)
def facture(facture, params):
params['o']=facture
return template().get_template("facture").render(params)
def sprint(object, limit=5):
params={'limit':limit}
from lc_ldap import objets
@ -79,6 +83,8 @@ def sprint(object, limit=5):
return adherent(object, params)
elif isinstance(object, objets.club):
return club(object, params)
elif isinstance(object, objets.facture):
return facture(object, params)
else:
return str(object)