From e43183de38f8d604b41206f9663ed6120fe943b9 Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Thu, 28 Aug 2025 16:17:22 +0200 Subject: [PATCH] Nettoyage --- patches.d/scribe-backend.patch | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/patches.d/scribe-backend.patch b/patches.d/scribe-backend.patch index 60ef268..f4878f6 100644 --- a/patches.d/scribe-backend.patch +++ b/patches.d/scribe-backend.patch @@ -101,7 +101,7 @@ index 0db4982..889dc03 100755 nscd_start() log.del_lock() diff --git usr/lib/python3/dist-packages/scribe/enseignants.py usr/lib/python3/dist-packages/scribe/enseignants.py -index 69f3411..5e1c1cf 100644 +index 69f3411..edfc210 100644 --- usr/lib/python3/dist-packages/scribe/enseignants.py +++ usr/lib/python3/dist-packages/scribe/enseignants.py @@ -12,21 +12,21 @@ @@ -127,7 +127,7 @@ index 69f3411..5e1c1cf 100644 """ _type = 'personnels' profil = 'enseignant' -@@ -145,44 +145,41 @@ class Enseignant(User): +@@ -145,38 +145,35 @@ class Enseignant(User): rep = join(AD_HOME_PATH, login) # répertoire supérieur clear_acl(rep) @@ -171,18 +171,11 @@ index 69f3411..5e1c1cf 100644 """ Mise à niveau Enseignant via l'extraction """ -- if 'etab' in args: -+ if 'etab' in args: # cas multi-étab => enseignant dans une UO spécifique + if 'etab' in args: user_dn = self.get_user_dn(login, force_etab=args.get('etab')) #USER_DN % dict(uid=login, _type=self._type) else: user_dn = self.get_user_dn(login) #USER_DN % dict(uid=login, _type=self._type) datas = [] - if not_empty(args, 'mail_acad'): - datas.append((MOD_REPLACE, 'FederationKey', - args['mail_acad'].lower())) - if not_empty(args, 'int_id'): - datas.append((MOD_REPLACE, 'intid', args['int_id'] )) - if not_empty(args, 'entpersonjointure'): @@ -196,21 +193,21 @@ class Enseignant(User): datas.append((MOD_REPLACE, 'ENTAuxEnsCategoDiscipline', args['disciplines'])) datas.append((MOD_REPLACE, 'sn', args['nom']))