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

Comparing COMP/CRAB/python/ServerCommunicator.py (file contents):
Revision 1.33 by spiga, Tue Jan 27 18:20:51 2009 UTC vs.
Revision 1.34 by spiga, Mon Feb 16 17:45:05 2009 UTC

# Line 12 | Line 12 | from crab_exceptions import *
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
# Line 40 | Line 41 | class ServerCommunicator:
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 )            
# Line 49 | Line 49 | class ServerCommunicator:
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   ###################################################
# Line 299 | Line 300 | class ServerCommunicator:
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines