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.18 by spiga, Sun Apr 20 17:04:52 2008 UTC vs.
Revision 1.19 by spiga, Tue Apr 22 08:58:47 2008 UTC

# Line 225 | Line 225 | class DBinterface:
225          lines=[]
226          task = self.getTask(jobsL)
227          for job in task.jobs:
228 <            lines.append(eval(job[attr]))
228 >            lines.append(job[attr])
229          return lines
230  
231      def queryRunJob(self, attr, jobsL):
# Line 251 | Line 251 | class DBinterface:
251              common.logger.debug(3, "Error loading Jobs By distinct Attr : " +str(traceback.format_exc()))
252              raise CrabException('Error loading Jobs By distinct Attr '+str(e))
253  
254 <        for i in task: distAttr.append(eval(i[attr]))  
254 >        for i in task: distAttr.append(i[attr])  
255          return  distAttr
256  
257      def queryDistJob_Attr(self, attr_1, attr_2, list):
# Line 265 | Line 265 | class DBinterface:
265              common.logger.debug(3, "Error loading Jobs By distinct Attr : " +str(traceback.format_exc()))
266              raise CrabException('Error loading Jobs By distinct Attr '+str(e))
267  
268 <        for i in task: distAttr.append(eval(i[attr_1]))  
268 >        for i in task: distAttr.append(i[attr_1])  
269          return  distAttr
270  
271      def queryAttrJob(self, attr, field):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines