cvs commit: gump/python/gump/stats statsdb.py

2004-07-13 Thread ajack
ajack   2004/07/13 14:43:32

  Modified:python/gump/document/xdocs documenter.py
   python/gump/stats statsdb.py
  Log:
  Docs tweaks (less is more).
  
  Revision  ChangesPath
  1.15  +46 -35gump/python/gump/document/xdocs/documenter.py
  
  Index: documenter.py
  ===
  RCS file: /home/cvs/gump/python/gump/document/xdocs/documenter.py,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- documenter.py 13 Jul 2004 18:44:36 -  1.14
  +++ documenter.py 13 Jul 2004 21:43:31 -  1.15
  @@ -607,6 +607,7 @@
   detailsTable.createEntry("Prefix: ", self.workspace.prefix)
   detailsTable.createEntry("Signature: ", self.workspace.signature)
   
  +self.documentStats(document,self.workspace)
   self.documentProperties(detailsSection, self.workspace, 'Workspace 
Properties')
   
   # Does this self.workspace send notification (nag) mails?
  @@ -1576,6 +1577,7 @@
   
   if not pcount: pallTable.createLine('None')
  
  +self.documentStats(document,module,realTime)
   self.documentFileList(document,module,'Module-level Files')
   self.documentWorkList(document,module,'Module-level Work')
   
  @@ -1751,41 +1753,7 @@
   if metadataLocation and metadataUrl:  
   detailsList.createEntry('Gump Metadata: ').createFork(metadataUrl, 
metadataLocation)

  -# Note: Leverages previous extraction from project statistics DB
  -stats=project.getStats()
  -
  -statsSection=document.createSection('Statistics')  
  -
  -#
  -# Start annotating with issues...
  -#
  -if project.isNotOk() and stats.sequenceInState >= SIGNIFICANT_DURATION:
  -statsSection.createWarning(  \
  -'This project has existed in this failed state for a significant 
duration.')
  -
  -statsTable=statsSection.createTable()   
  -
  -if (not realTime) and self.config.isXdocs():
  -# Generate an SVG for FOG:
  -(file,title) = self.diagramFOG(project)
  -if file:
  -statsTable.createEntry("FOG Factor: 
").createData().createIcon(file,title)
  -
  -statsTable.createEntry("FOG Factor: ", '%02.2f' % stats.getFOGFactor())
  -statsTable.createEntry('Dependency Depth: ', project.getDependencyDepth())  
  
  -statsTable.createEntry('Total Dependency Depth: ', 
project.getTotalDependencyDepth())
  -statsTable.createEntry("Successes: ", stats.successes)
  -statsTable.createEntry("Failures: ", stats.failures)
  -statsTable.createEntry("Prerequisite Failures: ", stats.prereqs)
  -statsTable.createEntry("Current State: ", 
stateDescription(stats.currentState))
  -statsTable.createEntry("Duration in state: ", stats.sequenceInState)
  -statsTable.createEntry("Start of state: ", 
secsToDateTime(stats.startOfState))
  -statsTable.createEntry("Previous State: ", 
stateDescription(stats.previousState))
  -
  -if stats.first:
  -statsTable.createEntry("First Success: ", secsToDateTime(stats.first))
  -if stats.last:
  -statsTable.createEntry("Last Success: ", secsToDateTime(stats.last))
  +self.documentStats(document,project,realTime)
   
   self.documentFileList(document,project,'Project-level Files')  
   
  @@ -1934,6 +1902,49 @@
   #footerXDoc(x)
   #endXDoc(x)
   
  +def documentStats(self,node,entity,realTime=False):
  +   
  +# Note: Leverages previous extraction from project statistics DB
  +stats=entity.getStats()
  +
  +statsSection=node.createSection('Statistics')  
  +
  +# Start annotating with issues...
  +if entity.isNotOk() and stats.sequenceInState >= SIGNIFICANT_DURATION:
  +statsSection.createWarning(\
  +'This entity has existed in this failed state for a significant 
duration.')
  +
  +statsTable=statsSection.createTable()   
  +
  +if not isinstance(entity,Workspace):
  +if (not realTime) and self.config.isXdocs():
  +# Generate an SVG for FOG:
  +(file,title) = self.diagramFOG(entity)
  +if file:
  +statsTable.createEntry("FOG Factor: 
").createData().createIcon(file,title)
  +
  +statsTable.createEntry("FOG Factor: ", '%02.2f' % stats.getFOGFactor())
  +
  +if isinstance(entity,Project):
  +statsTable.createEntry('Dependency Depth: ', 
entity.getDepende

cvs commit: gump/python/gump/stats statsdb.py

2004-06-14 Thread ajack
ajack   2004/06/14 14:31:47

  Modified:python/gump/test Tag: CleanUp __init__.py notifying.py
utils.py pyunit.py model.py
   python/gump/runner Tag: CleanUp runner.py tasks.py
   python/gump/utils Tag: CleanUp launcher.py timing.py
tasks.py work.py __init__.py
   python/gump/core Tag: CleanUp gumprun.py actor.py
   python/gump/notify Tag: CleanUp notifier.py notification.py
   python   Tag: CleanUp .cvsignore
   python/gump/document/xdocs Tag: CleanUp resolver.py
documenter.py xdoc.py
   python/gump/model Tag: CleanUp workspace.py project.py
depend.py
   python/gump/admin Tag: CleanUp stats.py
   python/gump/update Tag: CleanUp artifact.py
   python/gump Tag: CleanUp check.py
   python/gump/loader Tag: CleanUp loader.py
   python/gump/integration Tag: CleanUp depot.py
   python/gump/stats Tag: CleanUp statsdb.py
  Added:   template/xhtml/gump_icons Tag: CleanUp failed.png
complete.png prerequisite_failed.png
no_work_performed.png unset.png success.png
   python/gump/test Tag: CleanUp timing.py xdocs.py
   python   Tag: CleanUp test.html
   python/gump/document/xdocs Tag: CleanUp config.py
  Removed: python/gump/test Tag: CleanUp xdoc_tests.py
  Log:
  Work on optional XHTML support.
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.1.2.1   +11 -0 gump/template/xhtml/gump_icons/Attic/failed.png
  
<>
  
  
  1.1.2.1   +12 -0 gump/template/xhtml/gump_icons/Attic/complete.png
  
<>
  
  
  1.1.2.1   +9 -0  gump/template/xhtml/gump_icons/Attic/prerequisite_failed.png
  
<>
  
  
  1.1.2.1   +8 -0  gump/template/xhtml/gump_icons/Attic/no_work_performed.png
  
<>
  
  
  1.1.2.1   +8 -0  gump/template/xhtml/gump_icons/Attic/unset.png
  
<>
  
  
  1.1.2.1   +10 -0 gump/template/xhtml/gump_icons/Attic/success.png
  
<>
  
  
  No   revision
  No   revision
  1.12.2.2  +1 -1  gump/python/gump/test/__init__.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/test/__init__.py.diff?r1=1.12.2.1&r2=1.12.2.2
  
  
  1.3.2.3   +1 -4  gump/python/gump/test/notifying.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/test/notifying.py.diff?r1=1.3.2.2&r2=1.3.2.3
  
  
  1.13.2.1  +1 -47 gump/python/gump/test/utils.py
  
  http://cvs.apache.org/viewcvs/gump/python/gump/test/utils.py.diff?r1=1.13&r2=1.13.2.1
  
  
  1.32.2.3  +15 -3 gump/python/gump/test/pyunit.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/test/pyunit.py.diff?r1=1.32.2.2&r2=1.32.2.3
  
  
  1.21.2.3  +7 -3  gump/python/gump/test/model.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/test/model.py.diff?r1=1.21.2.2&r2=1.21.2.3
  
  
  No   revision
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/test/model.py.diff?r1=1.21.2.2&r2=1.21.2.3
  
  
  No   revision
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/test/model.py.diff?r1=1.21.2.2&r2=1.21.2.3
  
  
  1.1.2.1   +103 -0gump/python/gump/test/Attic/timing.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/test/Attic/timing.py.diff?r1=1.1&r2=1.1.2.1
  
  
  1.1.2.1   +68 -0 gump/python/gump/test/Attic/xdocs.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/test/Attic/xdocs.py.diff?r1=1.1&r2=1.1.2.1
  
  
  No   revision
  No   revision
  1.5.2.3   +2 -1  gump/python/gump/runner/runner.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/runner/runner.py.diff?r1=1.5.2.2&r2=1.5.2.3
  
  
  1.4.2.1   +1 -13 gump/python/gump/runner/tasks.py
  
  http://cvs.apache.org/viewcvs/gump/python/gump/runner/tasks.py.diff?r1=1.4&r2=1.4.2.1
  
  
  No   revision
  No   revision
  1.24.2.2  +3 -2  gump/python/gump/utils/launcher.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/utils/launcher.py.diff?r1=1.24.2.1&r2=1.24.2.2
  
  
  1.1.2.2   +262 -39   gump/python/gump/utils/Attic/timing.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/utils/Attic/timing.py.diff?r1=1.1.2.1&r2=1.1.2.2
  
  
  1.1.2.2   +7 -6  gump/python/gump/utils/Attic/tasks.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/utils/Attic/tasks.py.diff?r1=1.1.2.1&r2=1.1.2.2
  
  
  1.15.4.4  +40 -24gump/python/gump/utils/work.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/utils/work.py.diff?r1=1.15.4.3&r2=1.15.4.4
  
  
  1.44.2.4  +0 -114gump/python/gump/utils/__init__.py
  
  
http://cvs.apache.org/viewcvs/gump/python/gump/utils/__init__.py.diff?r1=1.44.2.3&r2=1.44.2.4
  
  
  No   revision
  No   revision
  1