ajack       2004/04/05 09:31:45

  Modified:    python/gump/document forrest.py text.py
  Log:
  Documentation tweaks (including annotations on env, and env when --text)
  
  Revision  Changes    Path
  1.130     +6 -7      gump/python/gump/document/forrest.py
  
  Index: forrest.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/document/forrest.py,v
  retrieving revision 1.129
  retrieving revision 1.130
  diff -u -r1.129 -r1.130
  --- forrest.py        5 Apr 2004 16:03:49 -0000       1.129
  +++ forrest.py        5 Apr 2004 16:31:45 -0000       1.130
  @@ -225,7 +225,8 @@
           envSection.createParagraph(
               """The environment that this Gump run was within.""")            
           
  -        #self.documentFileList(document,environment,'Environment-level Files')
  +        self.documentAnnotations(document,environment)        
  +        #self.documentFileList(document,environment,'Environment-level Files')      
  
           self.documentWorkList(document,environment,'Environment-level Work')
        
           document.serialize()
  @@ -271,12 +272,10 @@
           definitionTable.createEntry('Start Date/Time', workspace.startdatetime)
           definitionTable.createEntry('Timezone', workspace.timezone)
   
  -     javaproperties=run.getEnvironment().getJavaProperties()
  -     for name in ['java.vendor', 'java.version', 'os.name', 'os.arch', 
'os.version']:
  -       if name in javaproperties:
  -            definitionTable.createEntry(name, javaproperties[name])
  -         
  -       
  +        javaproperties=run.getEnvironment().getJavaProperties()
  +        for name in ['java.vendor', 'java.version', 'os.name', 'os.arch', 
'os.version']:
  +            if name in javaproperties:
  +                definitionTable.createEntry(name, javaproperties[name])        
           
           rssSyndRow=definitionTable.createRow()
           rssSyndRow.createData('Syndication')
  
  
  
  1.16      +11 -1     gump/python/gump/document/text.py
  
  Index: text.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/document/text.py,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- text.py   5 Apr 2004 13:38:00 -0000       1.15
  +++ text.py   5 Apr 2004 16:31:45 -0000       1.16
  @@ -52,6 +52,7 @@
           
           workspace = run.getWorkspace()
           gumpSet = run.getGumpSet()
  +        gumpEnv = run.getGumpEnvironment()
           
           #
           #
  @@ -65,7 +66,6 @@
           #
           output=self.output
               
  -            
           # Pretty sorting...
           sortedModuleList=createOrderedList(gumpSet.getModuleSequence())
           sortedProjectList=createOrderedList(gumpSet.getProjectSequence())
  @@ -76,6 +76,8 @@
           output.write(indent + "Workspace State : " + 
workspace.getStateDescription() + "\n")
           output.write(indent + "Workspace Secs : " + str(workspace.getElapsedSecs()) 
+ "\n")
       
  +        self.documentEnvironment(indent,gumpEnv,debug,verbose)    
  +    
           output.write(indent + "Modules: " + str(len(workspace.getModules())) + "\n")
       
           self.documentAnnotations(indent,workspace)
  @@ -106,6 +108,14 @@
               
                   self.documentProject(indent,project,debug,verbose)
                   
  +    def documentEnvironment(self, indent, environment, debug, verbose):
  +        indent += ' '
  +        output=self.output    
  +        output.write(indent + "Gump Environment\n")
  +        
  +        self.documentAnnotations(indent,environment)
  +        self.documentWork(indent,environment)
  +                 
       def documentProject(self, indent, project, debug, verbose):
           indent += ' '
           output=self.output    
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to