gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/document/xdocs documenter.py
Date Thu, 17 Jun 2004 19:55:10 GMT
ajack       2004/06/17 12:55:10

  Modified:    python/gump/document/xdocs Tag: CleanUp documenter.py
  Log:
  Snip snip...
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.9.2.14  +14 -13    gump/python/gump/document/xdocs/documenter.py
  
  Index: documenter.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/document/xdocs/documenter.py,v
  retrieving revision 1.9.2.13
  retrieving revision 1.9.2.14
  diff -u -r1.9.2.13 -r1.9.2.14
  --- documenter.py	17 Jun 2004 19:23:26 -0000	1.9.2.13
  +++ documenter.py	17 Jun 2004 19:55:09 -0000	1.9.2.14
  @@ -1710,10 +1710,11 @@
           
           statsTable=statsSection.createTable()           
           
  -        # Generate an SVG for FOG:
  -        (file,title) = self.diagramFOG(project)
  -        if file:
  -            statsTable.createEntry("FOG Factor: ").createData().createIcon(file,title)
  +        if 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())    
   
  @@ -1836,15 +1837,15 @@
               if not depens:
                   dependencySection.createNote('This project depends upon no others.')  
 
                    
  -        # Not ready for prime time...   
  -        try:
  -            # Generate an SVG for Dependencies Diagram:
  -            (file,title) = self.diagramDependencies(project)
  -            if file:
  -                para=dependencySection.createSection('Dependency Diagram').createParagraph()
  -                para.createFork(file).createIcon(file,title)
  -        except:
  -            log.error('Failed to diagram dependencies for [' + project.getName() + ']',
exc_info=1)
  +        if self.config.isXdocs():
  +            try:
  +                # Generate an SVG for Dependencies Diagram:
  +                (file,title) = self.diagramDependencies(project)
  +                if file:
  +                    para=dependencySection.createSection('Dependency Diagram').createParagraph()
  +                    para.createFork(file).createIcon(file,title)
  +            except:
  +                log.error('Failed to diagram dependencies for [' + project.getName() +
']', exc_info=1)
           
           document.serialize()
           
  
  
  

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


Mime
View raw message