gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump gumpy.py
Date Wed, 12 May 2004 17:48:42 GMT
ajack       2004/05/12 10:48:42

  Modified:    .        gumpy.py
  Log:
  Mail if at all possible.
  
  Revision  Changes    Path
  1.31      +9 -16     gump/gumpy.py
  
  Index: gumpy.py
  ===================================================================
  RCS file: /home/cvs/gump/gumpy.py,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- gumpy.py	12 May 2004 17:21:29 -0000	1.30
  +++ gumpy.py	12 May 2004 17:48:42 -0000	1.31
  @@ -40,7 +40,7 @@
   
   LINE=' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - GUMP'
   
  -GUMPY_VERSION='2.0.2-alpha-0001'
  +GUMPY_VERSION='2.0.2-alpha-0002'
   
   def ignoreHangup(signum):
       pass
  @@ -241,6 +241,9 @@
   log=open(logFile,'w',0) # Unbuffered...
   
   result=0
  +
  +hostname='Unknown'
  +workspaceName='Unknown'
           
   mailserver=None
   mailport=None
  @@ -430,22 +433,12 @@
           if tty or not published:
               catFile(sys.stdout, logFile, logTitle)
           
  -        if mailserver and mailport and mailto and mailfrom and logurl:
  +        if mailserver and mailport and mailto and mailfrom:
               
  -            #:TODO:
  -            # We need to move the gumpy.log to the log
  -            # directory, so we can mail a URL to it.
  -        
  -            # :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
  -            mailData='There is a problem with the run at : ' + logurl + '\n'
  +            if published and logurl:
  +                mailData='There is a problem with the run at : ' + logurl + '\n'
  +            else:
  +                mailData='There is a problem with the run at : ' + hostname + ':' + workspaceName
+ '\n'
               
               #
               # :TODO: Add link to log 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message