[attributs] aid dans CRANS_ATTRIBUTES
This commit is contained in:
parent
7ae277e7be
commit
fa1cb73e60
1 changed files with 13 additions and 0 deletions
13
attributs.py
13
attributs.py
|
@ -133,6 +133,18 @@ class objectClass(Attr):
|
|||
self.value = unicode(val)
|
||||
|
||||
|
||||
class aid(Attr):
|
||||
singlevalue = True
|
||||
optional = True
|
||||
legend = u"Identifiant de l'adhérent"
|
||||
|
||||
def parse_value(self, aid, ldif):
|
||||
self.value = int(aid)
|
||||
|
||||
def __unicode__(self):
|
||||
return unicode(self.value)
|
||||
|
||||
|
||||
class nom(Attr):
|
||||
singlevalue = True
|
||||
optional = False
|
||||
|
@ -409,6 +421,7 @@ class historique(Attr):
|
|||
|
||||
CRANS_ATTRIBUTES= {
|
||||
'objectClass' : objectClass,
|
||||
'aid': aid,
|
||||
'nom' : nom,
|
||||
'prenom' : prenom,
|
||||
'tel' : tel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue