From 625a1dbf94cfc23f2cc6f7fa2e997064648a8cc1 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Fri, 23 Aug 2013 14:04:07 +0200 Subject: [PATCH] =?UTF-8?q?[lc=5Fldap]=20paiement=5Fok=20m=C3=AAme=20en=20?= =?UTF-8?q?periode=20transitoire=20avec=20bl=5Fcarte=5Fet=5Fdefinitif=20?= =?UTF-8?q?=C3=A0=20True?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- objets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objets.py b/objets.py index b2404e8..dff89ee 100644 --- a/objets.py +++ b/objets.py @@ -528,14 +528,14 @@ class proprio(CransLdapObject): bool_paiement = True break # Pour la période transitoire année précédente ok - if config.periode_transitoire and paiement.value == config.ann_scol -1: + if config.periode_transitoire and paiement.value == (config.ann_scol -1): bool_paiement = True break except KeyError: pass # Doit-on bloquer en cas de manque de la carte d'etudiant ? # (si période transitoire on ne bloque dans aucun cas) - if config.bl_carte_et_definitif and not 'club' in map(lambda x:x.value,self["objectClass"]): + if not config.periode_transitoire and config.bl_carte_et_definitif and not 'club' in map(lambda x:x.value,self["objectClass"]): bool_carte = False try: for carte in self['carteEtudiant']: