12 |
|
from crab_util import * |
13 |
|
from crab_logger import Logger |
14 |
|
import common |
15 |
< |
|
15 |
> |
import Scram |
16 |
> |
from ProdCommon.Credential.CredentialAPI import CredentialAPI |
17 |
|
from CRAB_Server_API import CRAB_Server_Session as C_AS_Session |
18 |
|
# from CRAB_Server_fastAPI import CRAB_Server_https as C_AS_Session |
19 |
|
from xml.dom import minidom |
41 |
|
CliServerParams(self) |
42 |
|
self.crab_task_name = common.work_space.topDir().split('/')[-2] # nice task name "crab_0_..." |
43 |
|
|
43 |
– |
from ProdCommon.Credential.CredentialAPI import CredentialAPI |
44 |
|
configAPI = {'credential' : credentialType } |
45 |
|
|
46 |
|
CredAPI = CredentialAPI( configAPI ) |
49 |
|
except Exception, err: |
50 |
|
common.logger.debug(3, "Getting Credential Subject: " +str(traceback.format_exc())) |
51 |
|
raise CrabException("Error Getting Credential Subject") |
52 |
< |
|
52 |
> |
|
53 |
> |
self.scram=Scram.Scram(cfg_params) |
54 |
|
################################################### |
55 |
|
# Interactions with the server |
56 |
|
################################################### |
300 |
|
miniCfg['eMail'] = self.cfg_params.get('USER.email', None) |
301 |
|
miniCfg['threshold'] = self.cfg_params.get('USER.thresholdlevel', 100) |
302 |
|
|
303 |
+ |
miniCfg['CMSSW_version'] = self.scram.getSWVersion() |
304 |
+ |
|
305 |
|
## put here other fields if needed |
306 |
|
node.setAttribute("CfgParamDict", str(miniCfg) ) |
307 |
|
cfile.appendChild(node) |