Rétablir l’inscription aux nouveaux groupes
This commit is contained in:
@ -75,7 +75,7 @@ index 0db4982..1257b32 100755
|
|||||||
nscd_start()
|
nscd_start()
|
||||||
log.del_lock()
|
log.del_lock()
|
||||||
diff --git usr/lib/python3/dist-packages/scribe/enseignants.py usr/lib/python3/dist-packages/scribe/enseignants.py
|
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
|
||||||
+++ usr/lib/python3/dist-packages/scribe/enseignants.py
|
+++ usr/lib/python3/dist-packages/scribe/enseignants.py
|
||||||
@@ -12,21 +12,21 @@
|
@@ -12,21 +12,21 @@
|
||||||
@ -101,7 +101,7 @@ index 69f3411..101bd97 100644
|
|||||||
"""
|
"""
|
||||||
_type = 'personnels'
|
_type = 'personnels'
|
||||||
profil = 'enseignant'
|
profil = 'enseignant'
|
||||||
@@ -145,44 +145,36 @@ class Enseignant(User):
|
@@ -145,44 +145,40 @@ class Enseignant(User):
|
||||||
rep = join(AD_HOME_PATH, login)
|
rep = join(AD_HOME_PATH, login)
|
||||||
# répertoire supérieur
|
# répertoire supérieur
|
||||||
clear_acl(rep)
|
clear_acl(rep)
|
||||||
@ -127,10 +127,11 @@ index 69f3411..101bd97 100644
|
|||||||
#Suppression du cache
|
#Suppression du cache
|
||||||
self.cache_etab['login'].pop(user)
|
self.cache_etab['login'].pop(user)
|
||||||
self.ldap_admin._add(new_dn, modlist.addModlist(cur_ldif))
|
self.ldap_admin._add(new_dn, modlist.addModlist(cur_ldif))
|
||||||
- #inscription dans le groupe du nouvel etablissement
|
#inscription dans le groupe du nouvel etablissement
|
||||||
- self._inscription(user, new_etab, sync=False, etab=num_etab)
|
self._inscription(user, new_etab, sync=False, etab=num_etab)
|
||||||
- self._inscription(user, 'profs-' + new_etab, sync=False, etab=new_etab)
|
self._inscription(user, 'profs-' + new_etab, sync=False, etab=new_etab)
|
||||||
-
|
-
|
||||||
|
+
|
||||||
|
|
||||||
def _update(self, login, **args):
|
def _update(self, login, **args):
|
||||||
"""
|
"""
|
||||||
@ -148,7 +149,7 @@ index 69f3411..101bd97 100644
|
|||||||
if not_empty(args, 'int_id'):
|
if not_empty(args, 'int_id'):
|
||||||
datas.append((MOD_REPLACE, 'intid', args['int_id'] ))
|
datas.append((MOD_REPLACE, 'intid', args['int_id'] ))
|
||||||
if not_empty(args, 'entpersonjointure'):
|
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, 'ENTAuxEnsCategoDiscipline', args['disciplines']))
|
||||||
datas.append((MOD_REPLACE, 'sn', args['nom']))
|
datas.append((MOD_REPLACE, 'sn', args['nom']))
|
||||||
datas.append((MOD_REPLACE, 'givenName', args['prenom']))
|
datas.append((MOD_REPLACE, 'givenName', args['prenom']))
|
||||||
|
Reference in New Issue
Block a user