[objets] Arrivée de gpgMail dans les attributs des adherents, et petite correction
* Petite correction : Quand on est en mode write, on get dans _modifs, mais on vérifiait pas avec un has_key qu'on pouvait bien.
This commit is contained in:
parent
395cf90fbc
commit
592394a030
1 changed files with 2 additions and 1 deletions
|
@ -356,7 +356,7 @@ class CransLdapObject(object):
|
|||
return default
|
||||
|
||||
def __getitem__(self, attr):
|
||||
if self.mode in [ 'w', 'rw' ]:
|
||||
if self._modifs.has_key(attr) and self.mode in [ 'w', 'rw' ]:
|
||||
return [ v for v in self._modifs[attr] ]
|
||||
elif self.attrs.has_key(attr):
|
||||
return [ v for v in self.attrs[attr] ]
|
||||
|
@ -805,6 +805,7 @@ class adherent(proprio):
|
|||
attributs.derniereConnexion, attributs.gpgFingerprint,
|
||||
attributs.carteEtudiant, attributs.droits, attributs.etudes,
|
||||
attributs.postalAddress, attributs.mailExt, attributs.compteWiki,
|
||||
attributs.gpgMail,
|
||||
]
|
||||
ldap_name = "adherent"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue