Commit ac5f2f17 authored by Valentin Samir's avatar Valentin Samir

[objets, attributs] Ajout d'une classe objet inetOrgPerson

Parce que sinon, ça plante quand je récupère l'inetOrgPerson respbats dans
mon jouet fuse.
parent c29e92e3
......@@ -395,7 +395,7 @@ class objectClass(Attr):
can_view = [nounou, apprenti]
def parse_value(self, val):
if val not in [ 'top', 'organizationalUnit', 'posixAccount', 'shadowAccount',
if val not in [ 'top', 'organizationalUnit', 'inetOrgPerson', 'posixAccount', 'shadowAccount',
'proprio', 'adherent', 'club', 'machine', 'machineCrans',
'borneWifi', 'machineWifi', 'machineFixe', 'x509Cert', 'TLSACert',
'baseCert', 'cransAccount', 'service', 'facture', 'freeMid', 'privateKey' ]:
......@@ -719,6 +719,12 @@ def crans_object(classe):
ObjectFactory.register(classe.ldap_name, classe)
return classe
class InetOrgPerson(CransLdapObject):
ldap_name = "inetOrgPerson"
def __repr__(self):
return str(self.__class__.__name__) + " : cn=" + str(self['cn'][0])
class proprio(CransLdapObject):
u""" Un propriétaire de machine (adhérent, club…) """
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment