On rajoute la date d'inscription.
darcs-hash:20060924205812-68412-4c86f5eac774d65eef9ca5b63b13ba1676abb6a6.gz
This commit is contained in:
parent
a8761b54be
commit
1b89af3b52
2 changed files with 14 additions and 5 deletions
|
@ -2196,6 +2196,13 @@ class Adherent(BaseProprietaire):
|
||||||
|
|
||||||
return current
|
return current
|
||||||
|
|
||||||
|
def dateInscription(self):
|
||||||
|
"""Renvoie la date d'inscription."""
|
||||||
|
# En théorie, c'est la date de la première entrée dans l'historique
|
||||||
|
h = self.historique()[0]
|
||||||
|
h = h[:h.find(",")]
|
||||||
|
return time.mktime(time.strptime(h, date_format))
|
||||||
|
|
||||||
|
|
||||||
class Club(BaseProprietaire):
|
class Club(BaseProprietaire):
|
||||||
""" Classe de définition d'un club """
|
""" Classe de définition d'un club """
|
||||||
|
|
|
@ -367,10 +367,12 @@ def adher_details(adher) :
|
||||||
else:
|
else:
|
||||||
f += coul(strftime('%d/%m/%Y %H:%M', localtime(timestamp)),
|
f += coul(strftime('%d/%m/%Y %H:%M', localtime(timestamp)),
|
||||||
time()-timestamp > 32*24*3600 and 'rouge' or '')
|
time()-timestamp > 32*24*3600 and 'rouge' or '')
|
||||||
f += u'\n'
|
f += u"\n"
|
||||||
|
|
||||||
# État administratif
|
# État administratif
|
||||||
f += coul(u'État administratif : ','gras')
|
f += coul("Date d'inscription : ", "gras")
|
||||||
|
f += strftime('%d/%m/%Y %H:%M', localtime(adher.dateInscription()))
|
||||||
|
f += coul(u'\nÉtat administratif : ','gras')
|
||||||
jour=1
|
jour=1
|
||||||
if ann_scol not in adher.carteEtudiant() :
|
if ann_scol not in adher.carteEtudiant() :
|
||||||
f += coul(u"manque carte d'étudiant",'violet')
|
f += coul(u"manque carte d'étudiant",'violet')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue