You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2003/10/01 20:19:14 UTC

cvs commit: jakarta-gump/python/gump logic.py document.py

ajack       2003/10/01 11:19:13

  Modified:    template/forrest/src/documentation/content/xdocs site.xml
               python/gump logic.py document.py
  Log:
  1) Make more use of forrest site.xml (less links added via doc.py)
  2) Attempt to split >32K text nto parts.
  
  Revision  Changes    Path
  1.4       +6 -0      jakarta-gump/template/forrest/src/documentation/content/xdocs/site.xml
  
  Index: site.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/template/forrest/src/documentation/content/xdocs/site.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- site.xml	30 Sep 2003 21:11:23 -0000	1.3
  +++ site.xml	1 Oct 2003 18:19:13 -0000	1.4
  @@ -11,10 +11,16 @@
       <index label="TODOs" href="todos.html"/>
       <index label="Modules" href="modules.html"/>
       <index label="Packages" href="packages.html"/>
  +    <index label="Context" href="context.html"/>
     </work>
   
     <stats label="Statistics">
       <index label="Index" href="gump_stats/index.html"/>
  +    <index label="by FOG Factor" href="gump_stats/fogfactor.html"/>
  +    <index label="by Elapsed" href="gump_stats/elapsed.html"/>
  +    <index label="by Project #" href="gump_stats/projects.html"/>
  +    <index label="by Depends #" href="gump_stats/dependencies.html"/>
  +    <index label="by Dependees #" href="gump_stats/dependees.html"/>
     </stats>
   
     <external-refs>
  
  
  
  1.12      +5 -1      jakarta-gump/python/gump/logic.py
  
  Index: logic.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/logic.py,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- logic.py	30 Sep 2003 13:46:05 -0000	1.11
  +++ logic.py	1 Oct 2003 18:19:13 -0000	1.12
  @@ -430,13 +430,17 @@
                       pctxt=context.getProjectContextForProject(project)
                       pctxt.status=STATUS_COMPLETE
                       pctxt.reason=REASON_PACKAGE
  +                    packageCount+=1
                   else:    
                       allPackaged=0  
                       if packageCount:
                           mctxt.addWarning("Incomplete \'Packaged\' Module. Project: " + \
  -                                    project.name + " is not packaged")                  
  +                                    project.name + " is not packaged")   
               else:
                   packageCount+=1
  +                
  +        # Must be one to be all
  +        if not packageCount: allPackaged=0
                   
           if allPackaged:
               mctxt.status=STATUS_COMPLETE
  
  
  
  1.60      +12 -18    jakarta-gump/python/gump/document.py
  
  Index: document.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/document.py,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- document.py	30 Sep 2003 21:00:02 -0000	1.59
  +++ document.py	1 Oct 2003 18:19:13 -0000	1.60
  @@ -778,9 +778,20 @@
           if output:
               try:
                   try:
  +                    # Keep a length count to not exceed 32K
  +                    size=0
                       o=open(output, 'r')
                       line=o.readline()
                       while line:
  +                        length = len(line)
  +                        size += length
  +                        # Crude to 'ensure' that escaped
  +                        # it doesn't exceed 32K.
  +                        if size > 20000:
  +                            x.write('</source>')
  +                            x.write('<p>Continuation...</p>')
  +                            x.write('<source>')
  +                            size = length
                           x.write(escape(line))                
                           line=o.readline()
                   finally:
  @@ -814,24 +825,7 @@
       addItemXDoc(x,'Projects: ', stats.wguru.projectsInWorkspace)
       addItemXDoc(x,'Avg Projects Per Module: ', stats.wguru.averageProjectsPerModule)
       endListXDoc(x)
  -    endSectionXDoc(x)
  -    
  -    
  -    x.write('    <p>\n')
  -    addLinkXDoc(x, 'fogfactor.html', 'Modules By FOG Factor') 
  -    x.write('    </p>\n')
  -    x.write('    <p>\n')
  -    addLinkXDoc(x, 'elapsed.html', 'Modules By Elapsed Time') 
  -    x.write('    </p>\n')
  -    x.write('    <p>\n')
  -    addLinkXDoc(x, 'projects.html', 'Modules By Project Count') 
  -    x.write('    </p>\n')
  -    x.write('    <p>\n')
  -    addLinkXDoc(x, 'dependencies.html', 'Modules By Dependency Count') 
  -    x.write('    </p>\n')
  -    x.write('    <p>\n')
  -    addLinkXDoc(x, 'dependees.html', 'Modules By Dependee Count')    
  -    x.write('    </p>\n')
  +    endSectionXDoc(x)    
       
       footerXDoc(x) 
       endXDoc(x)