ajack       2004/05/05 22:15:09

  Modified:    python/gump/document/forrest documenter.py
  Log:
  Try 3
  
  Revision  Changes    Path
  1.30      +9 -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.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- documenter.py     6 May 2004 02:55:43 -0000       1.29
  +++ documenter.py     6 May 2004 05:15:09 -0000       1.30
  @@ -2157,7 +2157,6 @@
               # Show the content...
               #
               outputSection=wdocument.createSection('Output')
  -            outputSource=outputSection.createSource()
               output=work.result.output
               if output:                
                   try:
  @@ -2173,12 +2172,13 @@
                           
                           # Do the transfer..
                           copyfile(output,displayedOutput)                        
  -                        outputSource.createLink(outputBaseName)
  +                        outputSection.createParagraph().createLink(outputBaseName)
                           
  -                    else:
  +                    else: 
                           #
                           # Display it 'prettily' in HTML
                           #
  +                        outputSource=outputSection.createSource()   
                           o=None
                           try:
                               # Keep a length count to not exceed 32K
  @@ -2200,9 +2200,9 @@
                               if o: o.close()
                               
                   except Exception, details:
  -                    outputSource.createText('Failed to copy contents from :' + 
output + ' : ' + str(details))
  +                    outputSection.createParagraph('Failed to copy contents from :' 
+ output + ' : ' + str(details))
               else:
  -                outputSource.createText('No output to stdout/stderr from this 
command.')
  +                outputSection.createParagraph('No output to stdout/stderr from this 
command.')
              
               wdocument.serialize()
               wdocument=None
  @@ -2274,7 +2274,6 @@
                   # Show the content...
                   #
                   outputSection=fdocument.createSection('File Contents')
  -                outputSource=outputSection.createSource()
                   output=fileReference.getPath()
                   if output:
                       try:            
  @@ -2290,8 +2289,9 @@
                           
                               # Do the transfer..
                               copyfile(output,displayedOutput)                        
  -                            outputSource.createLink(outputBaseName)
  +                            
outputSection.createParagraph().createLink(outputBaseName)
                           else:
  +                            outputSource=outputSection.createSource()    
                               o=None
                               try:
                                   # Keep a length count to not exceed 32K
  @@ -2312,9 +2312,9 @@
                               finally:
                                   if o: o.close()
                       except Exception, details:
  -                        outputSource.createText('Failed to copy contents from :' + 
output + ' : ' + str(details))
  +                        outputSection.createParagraph('Failed to copy contents from 
:' + output + ' : ' + str(details))
                   else:
  -                    outputSource.createText('No contents in this file.')
  +                    outputSection.createParagraph('No contents in this file.')
           else:
               fdocument.createParagraph('No such file or directory.')
              
  
  
  

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

Reply via email to