ajack 2004/04/02 13:23:21
Modified: python/gump/document forrest.py
python/gump/test resolving.py
Log:
Some bug fixes (that would probably only ever show in unit testing, but still)
Revision Changes Path
1.125 +11 -7 gump/python/gump/document/forrest.py
Index: forrest.py
===================================================================
RCS file: /home/cvs/gump/python/gump/document/forrest.py,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -r1.124 -r1.125
--- forrest.py 2 Apr 2004 16:48:07 -0000 1.124
+++ forrest.py 2 Apr 2004 21:23:20 -0000 1.125
@@ -1763,8 +1763,12 @@
self.insertLink(work,workable,workRow.createData())
workRow.createData(stateDescription(work.state))
- workRow.createData(secsToDate(work.result.start_time))
- workRow.createData(secsToElapsedString(work.getElapsedSecs()))
+ if isinstance(work,TimedWorkItem):
+ workRow.createData(secsToDate(work.result.start_time))
+ workRow.createData(secsToElapsedString(work.getElapsedSecs()))
+ else:
+ workRow.createData('N/A')
+ workRow.createData('N/A')
#
# Do a tail on all work that failed...
@@ -1920,8 +1924,8 @@
else:
outputSource.createText('No output to stdout/stderr from this
command.')
- wdocument.serialize()
- wdocument=None
+ wdocument.serialize()
+ wdocument=None
def documentFileList(self,xdocNode,holder,description='Files'):
filelist=holder.getFileList()
1.2 +3 -3 gump/python/gump/test/resolving.py
Index: resolving.py
===================================================================
RCS file: /home/cvs/gump/python/gump/test/resolving.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- resolving.py 2 Apr 2004 16:48:06 -0000 1.1
+++ resolving.py 2 Apr 2004 21:23:20 -0000 1.2
@@ -109,9 +109,9 @@
def testLocations(self):
self.checkLocation(self.workspace)
- self.checkLocation(module1)
- self.checkLocation(module2)
- self.checkLocation(project1)
+ self.checkLocation(self.module1)
+ self.checkLocation(self.module2)
+ self.checkLocation(self.project1)
self.checkRelativeLocation(self.project1,self.project1)
self.checkRelativeLocation(self.project1,self.module1)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]