Mise en production
darcs-hash:20071031161351-c992d-6a472cf0ca40af1d6e6a68799deee9152905158e.gz
This commit is contained in:
parent
a191dae397
commit
d62d8e4c59
1 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ if u'Bureau' not in cableur.droits():
|
||||||
|
|
||||||
# Lors des tests, on m'envoie tous les mails !
|
# Lors des tests, on m'envoie tous les mails !
|
||||||
from socket import gethostname
|
from socket import gethostname
|
||||||
debug = True
|
debug = False
|
||||||
|
|
||||||
if gethostname().split(".")[0] == 'egon':
|
if gethostname().split(".")[0] == 'egon':
|
||||||
debug = 'bos@crans.org'
|
debug = 'bos@crans.org'
|
||||||
|
@ -152,10 +152,10 @@ def spammer():
|
||||||
|
|
||||||
for adh in todo_list:
|
for adh in todo_list:
|
||||||
to = adh.email()
|
to = adh.email()
|
||||||
if debug != None:
|
if not debug:
|
||||||
to = debug
|
connexion.sendmail("bureau@crans.org",to,config.txt_charte_MA % {'From' : "bureau@crans.org", 'To' : to})
|
||||||
connexion.sendmail("bureau@crans.org",to,config.txt_charte_MA % {'From' : "bureau@crans.org", 'To' : to})
|
else:
|
||||||
|
print to
|
||||||
def __usage(message=None):
|
def __usage(message=None):
|
||||||
""" Comment ça marche ? """
|
""" Comment ça marche ? """
|
||||||
cprint(__doc__ % { 'prog': sys.argv[0] })
|
cprint(__doc__ % { 'prog': sys.argv[0] })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue