diff --git a/patches.d/scribe-backend.patch b/patches.d/scribe-backend.patch index b88658a..cd9e286 100644 --- a/patches.d/scribe-backend.patch +++ b/patches.d/scribe-backend.patch @@ -75,7 +75,7 @@ index 0db4982..1257b32 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..101bd97 100644 +index 69f3411..19ba7a1 100644 --- usr/lib/python3/dist-packages/scribe/enseignants.py +++ usr/lib/python3/dist-packages/scribe/enseignants.py @@ -12,21 +12,21 @@ @@ -101,7 +101,7 @@ index 69f3411..101bd97 100644 """ _type = 'personnels' profil = 'enseignant' -@@ -145,44 +145,36 @@ class Enseignant(User): +@@ -145,44 +145,40 @@ class Enseignant(User): rep = join(AD_HOME_PATH, login) # répertoire supérieur clear_acl(rep) @@ -127,10 +127,11 @@ index 69f3411..101bd97 100644 #Suppression du cache self.cache_etab['login'].pop(user) self.ldap_admin._add(new_dn, modlist.addModlist(cur_ldif)) -- #inscription dans le groupe du nouvel etablissement -- self._inscription(user, new_etab, sync=False, etab=num_etab) -- self._inscription(user, 'profs-' + new_etab, sync=False, etab=new_etab) + #inscription dans le groupe du nouvel etablissement + self._inscription(user, new_etab, sync=False, etab=num_etab) + self._inscription(user, 'profs-' + new_etab, sync=False, etab=new_etab) - ++ def _update(self, login, **args): """ @@ -148,7 +149,7 @@ index 69f3411..101bd97 100644 if not_empty(args, 'int_id'): datas.append((MOD_REPLACE, 'intid', args['int_id'] )) if not_empty(args, 'entpersonjointure'): -@@ -196,21 +188,21 @@ class Enseignant(User): +@@ -196,21 +192,21 @@ class Enseignant(User): datas.append((MOD_REPLACE, 'ENTAuxEnsCategoDiscipline', args['disciplines'])) datas.append((MOD_REPLACE, 'sn', args['nom'])) datas.append((MOD_REPLACE, 'givenName', args['prenom']))