You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2004/03/01 22:35:31 UTC
cvs commit: gump gumpy.py
ajack 2004/03/01 13:35:31
Modified: . gumpy.py
Log:
Send url to log, don't send whole log...
Revision Changes Path
1.4 +12 -8 gump/gumpy.py
Index: gumpy.py
===================================================================
RCS file: /home/cvs/gump/gumpy.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- gumpy.py 25 Feb 2004 00:00:03 -0000 1.3
+++ gumpy.py 1 Mar 2004 21:35:31 -0000 1.4
@@ -234,7 +234,8 @@
mailserver=wsw.getAttribute('mailserver')
mailport=wsw.getAttribute('mailport') or 25
mailto=wsw.getAttribute('mailinglist')
- mailfrom=wsw.getAttribute('email')
+ mailfrom=wsw.getAttribute('email')
+ logurl=wsw.getAttribute('logurl')
# Extract the mail server/address
ws.unlink()
@@ -248,6 +249,8 @@
log.write('- GUMP mail from : ' + mailfrom + '\n')
if mailto:
log.write('- GUMP mail to : ' + mailto + '\n')
+ if logurl:
+ log.write('- GUMP log is @ : ' + logurl + '\n')
#
# Add Gump to Python Path...
@@ -314,16 +317,17 @@
# Cat log if failed...
catFile(sys.stdout, logFile, logTitle)
- if mailserver and mailport and mailto and mailfrom:
+ if mailserver and mailport and mailto and mailfrom and logurl:
# :TODO: Sucky to read file into memory...
# Need to figure out attachments, if that
# helps & doesn't just do same...
- tmpStream=StringIO.StringIO()
- catFile(tmpStream, logFile, logTitle)
- tmpStream.seek(0)
- logData=tmpStream.read()
- tmpStream.close()
- tmpStream=None
+ #tmpStream=StringIO.StringIO()
+ #catFile(tmpStream, logFile, logTitle)
+ #tmpStream.seek(0)
+ #logData=tmpStream.read()
+ #tmpStream.close()
+ #tmpStream=None
+ logData='There is a problem with the run at : ' + logurl
sendEmail(mailto,mailfrom,logTitle,logData,mailserver,mailport)
# bye!
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org