Passage aux adhésions glissantes (partie I, sans lc_ldap)
This commit is contained in:
parent
169b7000b8
commit
49cef4c095
12 changed files with 485 additions and 231 deletions
|
@ -16,7 +16,11 @@ ACTIONS POSSIBLES
|
|||
# Licence : GPLv2
|
||||
|
||||
|
||||
import sys, os, re, time, cPickle
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
import time
|
||||
import cPickle
|
||||
from time import mktime, time, localtime, strptime, strftime
|
||||
from socket import gethostname
|
||||
from smtplib import SMTP
|
||||
|
@ -187,7 +191,7 @@ Légende :
|
|||
- F : existence d'un .forward
|
||||
- M : existence de mails non lus
|
||||
|
||||
--
|
||||
--
|
||||
comptes_inactifs.py
|
||||
"""
|
||||
inscrits = []
|
||||
|
@ -208,7 +212,7 @@ comptes_inactifs.py
|
|||
mail = nb_mails_non_lus(login)
|
||||
mail = mail == None and u'?' or mail > 0 and u'X' or u' '
|
||||
ligne = (a.id(), login, a.Nom(), date, forward, mail)
|
||||
if ann_scol in a.paiement():
|
||||
if ann_scol in a.paiement() or a.adhesion() > time():
|
||||
inscrits.append(ligne)
|
||||
else:
|
||||
anciens.append(ligne)
|
||||
|
@ -292,7 +296,7 @@ comptes_inactifs.py
|
|||
recapitulatif += u"""
|
||||
Total : %d
|
||||
|
||||
--
|
||||
--
|
||||
comptes_inactifs.py
|
||||
""" % total
|
||||
send_email(mail_sender,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue