ajack 2003/09/28 10:36:42
Modified: python/gump document.py
Log:
Modules w/ TODOs plus All Modules
Revision Changes Path
1.47 +33 -1 jakarta-gump/python/gump/document.py
Index: document.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/document.py,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- document.py 28 Sep 2003 15:05:43 -0000 1.46
+++ document.py 28 Sep 2003 17:36:42 -0000 1.47
@@ -280,7 +280,39 @@
documentAnnotations(x,context.annotations)
- startSectionXDoc(x,'Modules')
+ startSectionXDoc(x,'Modules with TODOs')
+ startTableXDoc(x)
+ x.write(' <tr>')
+ x.write(' <th>Name</th><th>Project State(s)</th><th>Elapsed Time</th>')
+ x.write(' </tr>')
+ mcount=0
+ for mctxt in context:
+ mname=mctxt.name
+ if not Module.list.has_key(mname): continue
+ if moduleFilterList and not mctxt.module in moduleFilterList: continue
+
+ #
+ # Determine if there are todos, otherwise continue
+ #
+ todos=0
+ for pair in mctxt.aggregateStates():
+ if pair.state==STATUS_FAILED:
+ todos=1
+
+ if not todos: continue
+
+ mcount+=1
+
+ x.write(' <tr><!-- %s -->\n' % (mname))
+ x.write(' <td><link href=\'%s\'>%s</link></td><td>%s</td>\n' % \
+
(getModuleRelativeUrl(mname),mname,getStateIcons(mctxt.aggregateStates())))
+ x.write(' <td>%s</td>\n' % elapsedTimeToString(mctxt.elapsedTime()))
+ x.write(' </tr>\n\n')
+ if not mcount: x.write(' <tr><td>None</td></tr>')
+ endTableXDoc(x)
+ endSectionXDoc(x)
+
+ startSectionXDoc(x,'All Modules')
startTableXDoc(x)
x.write(' <tr>')
x.write(' <th>Name</th><th>Project State(s)</th><th>Elapsed Time</th>')
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]