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 Fri, 02 Jul 2004 14:54:12 GMT
ajack       2004/07/02 07:54:12

  Modified:    python/gump/document/xdocs Tag: CleanUp documenter.py
  Log:
  Try to cope w/ contents/X and contents/xdocs/X.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.9.2.31  +24 -9     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.30
  retrieving revision 1.9.2.31
  diff -u -r1.9.2.30 -r1.9.2.31
  --- documenter.py	2 Jul 2004 14:25:31 -0000	1.9.2.30
  +++ documenter.py	2 Jul 2004 14:54:12 -0000	1.9.2.31
  @@ -199,23 +199,38 @@
           
           # Get relative to (1) work [source] (2) log [target] & sync
                   
  -        # The move contents/xdocs from work directory to log
  +        # Move xdocs from work directory to log
           xdocWorkDir=self.getXDocWorkDirectory()
           logDirectory=self.getXDocLogDirectory()
           
  -        workContents=os.path.abspath(
  -                        os.path.join(xdocWorkDir,objDir))
  -                        
  -        logContents=os.path.abspath(
  -                        os.path.join(logDirectory,objDir))
  +        workContents=os.path.abspath(os.path.join(xdocWorkDir,objDir))
  +        logContents=os.path.abspath(os.path.join(logDirectory,objDir))
           
           success=True
           try:
  -            # Sync over public pages...
  -            syncDirectories(workContents,logContents) 
  +            if os.path.exists(workContents):    
  +                # Sync over public pages...
  +                syncDirectories(workContents,logContents) 
           except:        
  -            log.error('--- Failed to sync work->log ', exc_info=1)
  +            log.error('--- Failed to sync ['+`objDir`+'] (work->log)', exc_info=1)
               success=False
  +            
  +        if self.config.isXdocs():  
  +            # Move contents/xdocs from work directory to log
  +            # (Note: Forrest has contents/X and contents/xdocs/X)
  +            xdocWorkDir=os.path.abspath(os.path.join(xdocWorkDir,'xdocs'))
  +            logDirectory=os.path.abspath(os.path.join(logDirectory,'xdocs'))
  +        
  +            workContents=os.path.abspath(os.path.join(xdocWorkDir,objDir))
  +            logContents=os.path.abspath(os.path.join(logDirectory,objDir))
  +        
  +            try:
  +                if os.path.exists(workContents):    
  +                    # Sync over public pages...
  +                    syncDirectories(workContents,logContents) 
  +            except:        
  +                log.error('--- Failed to sync xdocs ['+`objDir`+'] (work->log)', exc_info=1)
  +                success=False    
           
           return success
           
  
  
  

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


Mime
View raw message