(14:10:07) sgnb: au fait, tu pourrais copier les modifications que j'ai
faites dans /home/glondu/crans/controle_tresorier.py vers /usr/scripts/admin/controle_tresorier.py (juste quelques bricoles) ? darcs-hash:20051204131209-d1718-7bc828225ded4e86ee9e943ede8e80fa6be1e850.gz
This commit is contained in:
parent
df7dbdc636
commit
5f0973ea36
1 changed files with 4 additions and 3 deletions
|
@ -255,7 +255,7 @@ class ControleMailer:
|
|||
def __init__(self):
|
||||
# Recherche des câbleurs possédant des cotisations/chartes
|
||||
todo_list = db.search('paiement=%d&controle!=*p*' % ann_scol)
|
||||
self._paiements = chercher_cableurs(todo_list['adherent'], '(paiement|controle)')
|
||||
self._paiements = chercher_cableurs(todo_list['adherent'], '(paiement|controle.*+k)')
|
||||
self._chartes = chercher_cableurs(todo_list['club'], 'paiement')
|
||||
|
||||
# Recherche des câbleurs possédant des cartes d'étudiant
|
||||
|
@ -306,7 +306,7 @@ class ControleMailer:
|
|||
msg += u"Carte d'étudiant des adhérents :\n"
|
||||
msg += formater_pour_bureau(self._cartes) + '\n\n'
|
||||
|
||||
return msg
|
||||
return msg.strip()
|
||||
|
||||
def mail_bureau(self):
|
||||
"""
|
||||
|
@ -314,7 +314,7 @@ class ControleMailer:
|
|||
"""
|
||||
msg = self.recapitulatif()
|
||||
if msg:
|
||||
msg += u"-- \nScript exécuté par %s\n" % cableur.Nom()
|
||||
msg += u"\n\n-- \nScript exécuté par %s\n" % cableur.Nom()
|
||||
send_email(self._sender,
|
||||
u"Bureau <bureau@crans.org>",
|
||||
u"Récapitulatif des papiers manquants",
|
||||
|
@ -352,6 +352,7 @@ class ControleMailer:
|
|||
msg += formater_pour_cableur(self._cartes[c]) + '\n\n'
|
||||
|
||||
if msg:
|
||||
msg = msg.strip()
|
||||
send_email(self._sender,
|
||||
"%s@crans.org" % c,
|
||||
subject,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue