[printing] Non affichage de la liste des machines/factures si l'objet adhérent n'existe pas encore
This commit is contained in:
parent
bc751c415b
commit
df23c50e23
1 changed files with 10 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
|||
from gestion.affich_tools import coul, tableau
|
||||
import importlib
|
||||
import time
|
||||
import ldap
|
||||
import sys
|
||||
|
||||
# Import inutile, mais on en a besoin pour que le
|
||||
|
@ -161,10 +162,15 @@ def proprio(proprio, params):
|
|||
if proprio["chbre"][0].value not in ["????", "EXT"]:
|
||||
params['brassage'] = coul("Cr@ns", "bleu") if gestion.annuaires_pg.is_crans(proprio["chbre"][0].value[0], proprio["chbre"][0].value[1:]) else coul("CROUS", "jaune")
|
||||
|
||||
if proprio.machines():
|
||||
params['machines']=list_machines(proprio.machines())
|
||||
if proprio.factures():
|
||||
params['factures']=list_factures(proprio.factures())
|
||||
try:
|
||||
if proprio.machines():
|
||||
params['machines']=list_machines(proprio.machines())
|
||||
if proprio.factures():
|
||||
params['factures']=list_factures(proprio.factures())
|
||||
# On essaye d'afficher un adhérent qui n'existe pas encore
|
||||
# et donc, on ne peut pas récupérer ses objets enfant
|
||||
except ldap.NO_SUCH_OBJECT:
|
||||
pass
|
||||
return params
|
||||
|
||||
def club(club, params):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue