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.25 by spiga, Sat May 10 15:30:20 2008 UTC vs.
Revision 1.30 by spiga, Tue May 20 20:49:11 2008 UTC

# Line 34 | Line 34 | class DBinterface:
34              raise CrabException('Istantiate DB Session : '+str(e))
35  
36          try:
37 <            common.bossSession.installDB('$CRABPRODCOMMONPYTHON/ProdCommon/BossLite/DbObjects/setupDatabase-sqlite.sql')    
37 >            common.bossSession.bossLiteDB.installDB('$CRABPRODCOMMONPYTHON/ProdCommon/BossLite/DbObjects/setupDatabase-sqlite.sql')
38          except Exception, e :
39              raise CrabException('DB Installation error : '+str(e))
40          return
# Line 354 | Line 354 | class DBinterface:
354          common.bossSession.updateDB( task )
355  
356          return
357 +
358 +    # FIXME temporary method to verify what kind of submission to perform towards the server
359 +    def checkIfNeverSubmittedBefore(self):
360 +        for j in self.getTask().jobs:
361 +            if j.runningJob['submission'] > 1 or j.runningJob['status'] != 'C':
362 +                return False
363 +        return True
364 +
365 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines