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

Comparing COMP/CRAB/python/SchedulerCondor.py (file contents):
Revision 1.20 by spiga, Fri Mar 6 16:49:55 2009 UTC vs.
Revision 1.21 by spiga, Fri Mar 6 16:54:42 2009 UTC

# Line 57 | Line 57 | class SchedulerCondor(SchedulerLocal) :
57          self.return_data = cfg_params.get('USER.return_data', 0)
58          self.copy_data   = cfg_params.get("USER.copy_data", 0)
59  
60        if int(self.return_data) == 0 and int(self.copy_data) == 0:
61            msg =  'Error: return_data and copy_data cannot both be set to 0\n'
62            msg += 'Please modify your crab.cfg file\n'
63            raise CrabException(msg)
64
65        if int(self.return_data) == 1 and int(self.copy_data) == 1:
66            msg =  'Error: return_data and copy_data cannot both be set to 1\n'
67            msg += 'Please modify your crab.cfg file\n'
68            raise CrabException(msg)
69
70        if int(self.copy_data) == 0 and int(self.publish_data) == 1:
71            msg =  'Warning: publish_data=1 must be used with copy_data=1\n'
72            msg += 'Please modify the copy_data value in your crab.cfg file\n'
73            common.logger.message(msg)
74            raise CrabException(msg)
75
60          if int(self.copy_data) == 1:
77            self.SE = cfg_params.get('USER.storage_element', None)
78            if not self.SE:
79                msg = "Error. The [USER] section has no 'storage_element'"
80                common.logger.message(msg)
81                raise CrabException(msg)
61  
62              self.proxyValid = 0
63              self.dontCheckProxy = int(cfg_params.get("EDG.dont_check_proxy", 0))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines