gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: jakarta-gump/python/gump/utils tools.py
Date Fri, 05 Dec 2003 04:41:05 GMT
ajack       2003/12/04 20:41:05

  Modified:    python/gump/utils tools.py
  Log:
  Bug forever growing work name
  
  Revision  Changes    Path
  1.6       +5 -4      jakarta-gump/python/gump/utils/tools.py
  
  Index: tools.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/utils/tools.py,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- tools.py	3 Dec 2003 18:36:13 -0000	1.5
  +++ tools.py	5 Dec 2003 04:41:05 -0000	1.6
  @@ -91,13 +91,14 @@
       try:
           if os.path.exists(directory) and  os.path.isdir(directory):
               for fileName in os.listdir(directory):
  +                baseName=name    
                   file=os.path.abspath(os.path.join(directory,fileName))                
                   if os.path.exists(file) and os.path.isfile(file):
  -                    if name: 
  -                        name=name+'_'+fileName
  +                    if baseName: 
  +                        workName=baseName+'_'+fileName
                       else:
  -                        name=fileName
  -                    catFileAsWork(workable,	file, name)
  +                        workName=fileName
  +                    catFileAsWork(workable,	file, workName)
       except:
           try:
               workable.addWarning('No such directory [' + str(directory) + ']')
  
  
  

Mime
View raw message