Rage commit
This commit is contained in:
parent
68fd355dad
commit
9702b1825c
2 changed files with 6 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from lc_ldap import lc_ldap
|
||||
__all__ = [lc_ldap]
|
|
@ -288,7 +288,7 @@ class droits(Attr):
|
|||
|
||||
def parse_value(self, val, ldif):
|
||||
if val.lower() not in ['apprenti', 'nounou', 'cableur', 'tresorier', 'bureau',
|
||||
'webmaster', 'webradio', 'imprimeur', 'multimachines', 'victime', 'moderateur']:
|
||||
'webmaster', 'webradio', 'imprimeur', 'multimachines', 'victime', 'moderateur', 'nounours']:
|
||||
raise ValueError("Ces droits n'existent pas ('%s')" % val)
|
||||
if val.lower() == 'webmaster':
|
||||
self.value = u'WebMaster'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue