ajack 2004/04/22 07:50:47
Modified: python/gump/model project.py
. gumpy.py
python/gump/document/forrest documenter.py
Log:
Fixed typo that broke last nights build.
Tried to make gumpy.py mail us when things fail.
Revision Changes Path
1.77 +1 -1 gump/python/gump/model/project.py
Index: project.py
===================================================================
RCS file: /home/cvs/gump/python/gump/model/project.py,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- project.py 21 Apr 2004 19:01:52 -0000 1.76
+++ project.py 22 Apr 2004 14:50:47 -0000 1.77
@@ -303,7 +303,7 @@
# The something was this project
if cause == self:
if not project in self.affectedProjects:
- self.affectedProjects.append[project]
+ self.affectedProjects.append(project)
def propagateErrorStateChange(self,state,reason,cause,message):
1.22 +5 -4 gump/gumpy.py
Index: gumpy.py
===================================================================
RCS file: /home/cvs/gump/gumpy.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- gumpy.py 20 Apr 2004 23:26:55 -0000 1.21
+++ gumpy.py 22 Apr 2004 14:50:47 -0000 1.22
@@ -260,10 +260,11 @@
baseDir=wsw.getAttribute('basedir')
basePath=os.path.abspath(baseDir)
# Mail reporting
+ private=wsw.getAttribute('private')
mailserver=wsw.getAttribute('mailserver')
mailport=wsw.getAttribute('mailport') or 25
- mailto=wsw.getAttribute('mailinglist')
- mailfrom=wsw.getAttribute('email')
+ mailto=wsw.getAttribute('mailinglist') or '[EMAIL PROTECTED]'
+ mailfrom=wsw.getAttribute('email') or '[EMAIL PROTECTED]'
# Log (site) location(s)
logurl=wsw.getAttribute('logurl')
logdir=wsw.getAttribute('logdir') or os.path.join(basePath,'log')
@@ -272,9 +273,9 @@
log.write('- GUMP base directory : ' + baseDir + '\n')
log.write('- GUMP base path : ' + str(basePath) + '\n')
- if mailserver:
+ if mailserver and not private:
log.write('- GUMP mail server : ' + mailserver + '\n')
- if mailport:
+ if mailport and not private:
log.write('- GUMP mail port : ' + str(mailport) + '\n')
if mailfrom:
log.write('- GUMP mail from : ' + mailfrom + '\n')
1.10 +5 -4 gump/python/gump/document/forrest/documenter.py
Index: documenter.py
===================================================================
RCS file: /home/cvs/gump/python/gump/document/forrest/documenter.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- documenter.py 21 Apr 2004 19:01:52 -0000 1.9
+++ documenter.py 22 Apr 2004 14:50:47 -0000 1.10
@@ -1502,9 +1502,10 @@
detailsList.createEntry('Notify From:
').createFork('mailto:'+fromaddr,fromaddr)
- detailsList.createEntry('Notify E-mail').createLink(
- gumpSafeName(project.getName()) + '_notify.html',
- 'Contents')
+ if project.isFailed() :
+ detailsList.createEntry('Notification E-mail: ').createLink(
+ gumpSafeName(project.getName()) + '_notify.html',
+ 'Contents')
elif not project.isPackaged() and project.hasBuildCommand():
document.createWarning('This project does not utilize Gump nagging.')
@@ -1660,7 +1661,7 @@
document.serialize()
- if project.xml.nag:
+ if project.xml.nag and project.isFailed():
document=XDocDocument('Project Details : ' + project.getName(), \
self.resolver.getFile(project, \
project.getName() + '_notify', \
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]