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/forrest documenter.py
Date Tue, 20 Apr 2004 23:37:56 GMT
ajack       2004/04/20 16:37:56

  Modified:    python/gump/document/forrest documenter.py
  Log:
  Keep SVGs to gump.try only, so as not to dork up LSD/others.
  
  Revision  Changes    Path
  1.8       +11 -9     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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- documenter.py	20 Apr 2004 17:44:32 -0000	1.7
  +++ documenter.py	20 Apr 2004 23:37:56 -0000	1.8
  @@ -1640,15 +1640,17 @@
                   dependencySection.createNote('No projects depend upon this project.') 
  
               if not depens:
                   dependencySection.createNote('This project depends upon no others.')  
 
  -                                
  -        try:
  -            # Generate an SVG for FOG:
  -            (pngFile,pngTitle) = self.diagramDependencies(project)
  -            if pngFile:
  -                para=dependencySection.createSection('Dependency Diagram').createParagraph()
  -                para.createFork(pngFile).createIcon(pngFile,pngTitle)
  -        except:
  -            log.error('Failed to diagram dependencies for [' + project.getName() + ']',
exc_info=1)
  +                 
  +        # Not ready for prime time...   
  +        if 'gump.try' == workspace.getName():                        
  +            try:
  +                # Generate an SVG for FOG:
  +                (pngFile,pngTitle) = self.diagramDependencies(project)
  +                if pngFile:
  +                    para=dependencySection.createSection('Dependency Diagram').createParagraph()
  +                    para.createFork(pngFile).createIcon(pngFile,pngTitle)
  +            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