ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/DBinterface.py
(Generate patch)

Comparing COMP/CRAB/python/DBinterface.py (file contents):
Revision 1.10 by spiga, Tue Mar 25 16:29:12 2008 UTC vs.
Revision 1.11 by spiga, Wed Mar 26 14:05:52 2008 UTC

# Line 183 | Line 183 | class DBinterface:
183          if server_mode == 1:
184              header= "Task Id = %-40s " %(task['name'])
185          else:
186 <            for i in range(len(task.job)):
187 <                common.bossSession.getRunningInstance(task.jobs[i])
188 <                lines.append(task.jobs[i].runningJob['schedulerId'])
189 <          
190 <            header+= "Job: %-5s Id = %-40s: \n"
191 <        displayReport(header,lines)
186 >            for job in task.jobs:
187 >                toPrint=''
188 >                common.bossSession.getRunningInstance(job)
189 >                toPrint = "%-5s %-50s " % (job['id'],job.runningJob['schedulerId'])
190 >                lines.append(toPrint)
191 >            header+= "%-5s %-50s " % ('Job:','ID' )
192 >        displayReport(self,header,lines)
193          return  
194  
195      def queryTask(self,attr):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines