Petites modifications dans l'envoie de mails par l'intranet

Sujet plus explicite et une exception moins incompréhensible pour les
tests.

darcs-hash:20080520183543-69ccb-0d724b8011507a10e48cb394a992a1e7592af1a3.gz
This commit is contained in:
Grgoire Dtrez 2008-05-20 20:35:43 +02:00
parent e95ff3ec97
commit ec55fc2ee8

View file

@ -160,7 +160,11 @@ Ceci est un rapport de bug envoye par l'intranet.
tb = crans.utils.exceptions.formatExc()
text += "\n= Traceback =\n"
text += tb
try:
errorString = tb.split("\n")[-2]
subject = "[Error] %s" % errorString
except: pass
text +="\n= Autres informations =\n"
autres_informations = "\n".join( [ "%s: %s" % (str(a), str(kw[a])) for a in kw] )
text += autres_informations
@ -194,7 +198,7 @@ Ceci est un rapport de bug envoye par l'intranet.
send_error_repport.exposed = True
def testErreur(self):
raise Exception, "sdlfkjqmsdklj"
raise Exception, "Fausse alerte ! (test du systèmede gestion des erreurs)"
testErreur.exposed = True