[attributs, lc_ldap] Création de clubs
This commit is contained in:
parent
ba260bcb50
commit
5d8f5a9d23
3 changed files with 4 additions and 3 deletions
|
@ -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"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue