fed_ts.patch
| FrEduVecteur.py 2014-02-06 12:04:23.696072151 +0100 | ||
|---|---|---|
| 11 | 11 |
self.attr_name = attr_name |
| 12 | 12 |
self.db_path = '/usr/share/sso/reverseTeleservice.db' |
| 13 | 13 | |
| 14 |
def get_local_attr(self, attr_values): |
|
| 14 |
def get_local_attrs(self, attr_values):
|
|
| 15 | 15 |
""" |
| 16 | 16 |
retourne l'identifiant ENT d'un responsable ou élève en fonction |
| 17 | 17 |
du vecteur de fédération FrEfuVecteur transmis par le guichet ATEN. |
| ... | ... | |
| 60 | 60 |
user_attrs['intid'] = [intid] |
| 61 | 61 |
elif typevect in ("3", "4"):
|
| 62 | 62 |
# cas d'un élève connecté depuis le guichet ATEN, son identifiant ENT est présent dans le vecteur |
| 63 |
user_attrs['intid'] = cleidstruct |
|
| 63 |
intid = db[attr_values[0]] |
|
| 64 |
user_attrs['intid'] = [intid] |
|
| 64 | 65 |
db.close() |
| 65 | 66 |
user_attrs['ENTStructRattachId'] = liste_rne |
| 66 | 67 |
return user_attrs |