crans -> AssociationCrans
adherent -> Adherent club -> Club darcs-hash:20060325215156-68412-615c1bfb3b23e16cd10b82cc3dc467e716c258ea.gz
This commit is contained in:
parent
0a53921e05
commit
f16056b8b4
12 changed files with 62 additions and 64 deletions
|
@ -5,16 +5,16 @@
|
|||
|
||||
import sys, smtplib, commands
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
from ldap_crans import smtpserv, crans, crans_ldap, Machine, adherent, club
|
||||
from ldap_crans import smtpserv, crans_ldap, Machine, Adherent, Club
|
||||
from whos import machine_details, adher_details, club_details
|
||||
from gen_confs import gen_config
|
||||
from affich_tools import cprint, OK, anim
|
||||
|
||||
class mail :
|
||||
class mail:
|
||||
"""
|
||||
Envoie un mail à toutes les personnes de la liste 'To', avec les
|
||||
informations détaillées des objets contenus dans 'objets'
|
||||
(instances des classes adherent, machine ou club) """
|
||||
(instances des classes Adherent, Machine ou Club) """
|
||||
|
||||
From = 'root@crans.org'
|
||||
To = [ 'roots@crans.org' ]
|
||||
|
@ -47,9 +47,9 @@ Subject: %(Subject)s
|
|||
vus.append(res.dn)
|
||||
if isinstance(res, Machine):
|
||||
details.append(machine_details(res))
|
||||
elif res.__class__ == adherent :
|
||||
elif res.__class__ == Adherent:
|
||||
details.append(adher_details(res))
|
||||
elif res.__class__ == club :
|
||||
elif res.__class__ == Club:
|
||||
details.append(club_details(res))
|
||||
a.cycle()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue