Ignore:
Timestamp:
Feb 27, 2020 11:43:53 AM (5 years ago)
Author:
maronga
Message:

bugfix for last commit. fix in .palm.iofiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrungui

    r4427 r4428  
    2525# -----------------
    2626# $Id$
     27# Bugfix for update button
     28#
     29# 4427 2020-02-27 11:29:51Z maronga
    2730# Small fixes and adjustments
    2831#
     
    12011204       self.push_copy.setEnabled(True)
    12021205       self.push_create_set.setEnabled(True)
    1203      
    1204        job_to_show = job_dir + "/" + self.list_jobs.currentItem().text() + "/INPUT"
    1205 
    1206        if ( os.path.isdir(job_to_show) ):
    1207 
    1208           list_of_files = os.listdir(job_to_show)
     1206       
     1207       jobitem = self.list_jobs.currentItem()
     1208       
     1209       if ( jobitem != None ):
     1210       
     1211          job_to_show = job_dir + "/" + jobitem.text() + "/INPUT"
     1212
     1213          if ( os.path.isdir(job_to_show) ):
     1214
     1215             list_of_files = os.listdir(job_to_show)
    12091216         
    1210           for i in range(0,len(list_of_files)):
    1211              tmp_file = job_to_show + "/" + list_of_files[i]
    1212              
    1213              if ( os.path.isfile(tmp_file) ):
    1214                 self.list_input.addItem(str(list_of_files[i]))
     1217             for i in range(0,len(list_of_files)):
     1218                tmp_file = job_to_show + "/" + list_of_files[i]
     1219             
     1220                if ( os.path.isfile(tmp_file) ):
     1221                   self.list_input.addItem(str(list_of_files[i]))
    12151222 
    1216        job_to_show = job_dir + "/" + self.list_jobs.currentItem().text() + "/USER_CODE"
    1217        
    1218        if ( os.path.isdir(job_to_show) ):
     1223          job_to_show = job_dir + "/" + jobitem.text() + "/USER_CODE"
     1224       
     1225          if ( os.path.isdir(job_to_show) ):
    12191226         
    1220           list_of_files = os.listdir(job_to_show)
     1227             list_of_files = os.listdir(job_to_show)
    12211228         
    1222           for i in range(0,len(list_of_files)):
    1223              tmp_file = job_to_show + "/" + list_of_files[i]
    1224 
    1225              if ( os.path.isfile(tmp_file) ):
    1226                 self.list_user.addItem(str(list_of_files[i]))
    1227 
    1228        job_to_show = job_dir + "/" + self.list_jobs.currentItem().text() + "/MONITORING"
    1229        
    1230        if ( os.path.isdir(job_to_show) ):
     1229             for i in range(0,len(list_of_files)):
     1230                tmp_file = job_to_show + "/" + list_of_files[i]
     1231
     1232                if ( os.path.isfile(tmp_file) ):
     1233                   self.list_user.addItem(str(list_of_files[i]))
     1234
     1235          job_to_show = job_dir + "/" + jobitem.text() + "/MONITORING"
     1236       
     1237          if ( os.path.isdir(job_to_show) ):
    12311238         
    1232           list_of_files = os.listdir(job_to_show)
     1239             list_of_files = os.listdir(job_to_show)
    12331240         
    1234           for i in range(0,len(list_of_files)):
    1235              tmp_file = job_to_show + "/" + list_of_files[i]
    1236 
    1237              if ( os.path.isfile(tmp_file) ):
    1238                 self.list_monitoring.addItem(str(list_of_files[i]))
    1239 
    1240        job_to_show = job_dir + "/" + self.list_jobs.currentItem().text() + "/OUTPUT"
    1241        
    1242        if ( os.path.isdir(job_to_show) ):
     1241             for i in range(0,len(list_of_files)):
     1242                tmp_file = job_to_show + "/" + list_of_files[i]
     1243
     1244                if ( os.path.isfile(tmp_file) ):
     1245                   self.list_monitoring.addItem(str(list_of_files[i]))
     1246
     1247          job_to_show = job_dir + "/" + jobitem.text() + "/OUTPUT"
     1248
     1249          if ( os.path.isdir(job_to_show) ):
    12431250         
    1244           list_of_files = os.listdir(job_to_show)
     1251             list_of_files = os.listdir(job_to_show)
    12451252         
    1246           for i in range(0,len(list_of_files)):
    1247              tmp_file = job_to_show + "/" + list_of_files[i]
    1248 
    1249              if ( os.path.isfile(tmp_file) ):
    1250                 self.list_output.addItem(str(list_of_files[i]))
     1253             for i in range(0,len(list_of_files)):
     1254                tmp_file = job_to_show + "/" + list_of_files[i]
     1255
     1256                if ( os.path.isfile(tmp_file) ):
     1257                   self.list_output.addItem(str(list_of_files[i]))
    12511258 
    1252        self.group_execution.findChild(QtGui.QLineEdit,"line_jobname").setText(self.list_jobs.currentItem().text())
     1259          self.group_execution.findChild(QtGui.QLineEdit,"line_jobname").setText(jobitem.text())
    12531260       self.group_history.findChild(QtGui.QListWidget,"list_jobname").clearSelection()
    12541261
Note: See TracChangeset for help on using the changeset viewer.