[attributs, lc_ldap] Création de clubs

This commit is contained in:
Olivier Iffrig 2011-02-27 15:40:39 +01:00
parent ba260bcb50
commit 5d8f5a9d23
3 changed files with 4 additions and 3 deletions

View file

@ -185,7 +185,9 @@ class lc_ldap(ldap.ldapobject.LDAPObject):
def newClub(self, uldif):
"""Crée un nouveau club"""
raise NotImplementedError()
cid = uldif.setdefault('cid', [ unicode(self._find_id('cid')) ])
uldif['objectClass'] = [u'club']
return self._create_entity('cid=%s,%s' % (cid[0], base_dn), uldif)
def newFacture(self, uldif):
"""Crée une nouvelle facture"""