[attributs] On ajoute un attribut gpgMail spécifique
* On ne peut pas utiliser mailExt, car on souhaite que cet attribut ne soit pas en conflit avec les autres attributs de mails (oui, on accepte la redondance)
This commit is contained in:
parent
0c157efaae
commit
8ef8ba04a0
1 changed files with 40 additions and 23 deletions
17
attributs.py
17
attributs.py
|
@ -1178,6 +1178,23 @@ class gpgFingerprint(Attr):
|
||||||
can_modify = [soi, nounou]
|
can_modify = [soi, nounou]
|
||||||
ldap_name = "gpgFingerprint"
|
ldap_name = "gpgFingerprint"
|
||||||
|
|
||||||
|
@crans_attribute
|
||||||
|
class gpgMail(mail):
|
||||||
|
"""Attribut servant à stocker un mail allant de paire avec
|
||||||
|
l'un des uid dans la clef gpg pointée par gpgFingerprint"""
|
||||||
|
singlevalue = False
|
||||||
|
optional = True
|
||||||
|
unique = True
|
||||||
|
legend = "Mail associé à une clef gpg"
|
||||||
|
can_modify = [soi, nounou]
|
||||||
|
ldap_name = "gpgMail"
|
||||||
|
def check_uniqueness(self, liste_exclue):
|
||||||
|
super(mail, self).check_uniqueness(liste_exclue)
|
||||||
|
|
||||||
|
def parse_value(self, mail):
|
||||||
|
mail = mail.lower
|
||||||
|
super(gpgMail, self).parse_value(mail)
|
||||||
|
|
||||||
@crans_attribute
|
@crans_attribute
|
||||||
class cn(Attr):
|
class cn(Attr):
|
||||||
singlevalue = True
|
singlevalue = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue