Nettoyage
This commit is contained in:
@@ -101,7 +101,7 @@ index 0db4982..889dc03 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..5e1c1cf 100644
|
index 69f3411..edfc210 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 @@
|
||||||
@@ -127,7 +127,7 @@ index 69f3411..5e1c1cf 100644
|
|||||||
"""
|
"""
|
||||||
_type = 'personnels'
|
_type = 'personnels'
|
||||||
profil = 'enseignant'
|
profil = 'enseignant'
|
||||||
@@ -145,44 +145,41 @@ class Enseignant(User):
|
@@ -145,38 +145,35 @@ 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)
|
||||||
@@ -171,18 +171,11 @@ index 69f3411..5e1c1cf 100644
|
|||||||
"""
|
"""
|
||||||
Mise à niveau Enseignant via l'extraction
|
Mise à niveau Enseignant via l'extraction
|
||||||
"""
|
"""
|
||||||
- if 'etab' in args:
|
if 'etab' in args:
|
||||||
+ if 'etab' in args: # cas multi-étab => enseignant dans une UO spécifique
|
|
||||||
user_dn = self.get_user_dn(login, force_etab=args.get('etab')) #USER_DN % dict(uid=login, _type=self._type)
|
user_dn = self.get_user_dn(login, force_etab=args.get('etab')) #USER_DN % dict(uid=login, _type=self._type)
|
||||||
else:
|
else:
|
||||||
user_dn = self.get_user_dn(login) #USER_DN % dict(uid=login, _type=self._type)
|
user_dn = self.get_user_dn(login) #USER_DN % dict(uid=login, _type=self._type)
|
||||||
datas = []
|
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):
|
@@ -196,21 +193,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']))
|
||||||
|
Reference in New Issue
Block a user