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

Comparing COMP/CRAB/python/CredentialRenew.py (file contents):
Revision 1.8 by farinafa, Fri Sep 25 08:12:26 2009 UTC vs.
Revision 1.10 by farinafa, Tue May 11 14:01:08 2010 UTC

# Line 26 | Line 26 | class CredentialRenew(Actor):
26          # FIXME With MyProxy delegation this part is completely overlapped with the method manageDelegation
27          # in SubmitServer. We should to maintain just one version of the method in a common part  
28  
29 <        myproxyserver = self.cfg_params.get('GRID.proxy_server', 'myproxy.cern.ch')
29 >        try:
30 >            myproxyserver = Downloader("http://cmsdoc.cern.ch/cms/LCG/crab/config/").config("myproxy_server.conf")
31 >            myproxyserver = myproxyserver.strip()
32 >            if myproxyserver is None:
33 >                raise CrabException("myproxy_server.conf retrieved but empty")
34 >        except Exception, e:
35 >            common.logger.info("Problem setting myproxy server endpoint: using myproxy.cern.ch")
36 >            common.logger.debug(e)
37 >            myproxyserver = 'myproxy.cern.ch'
38 >
39          configAPI = {'credential' : self.credentialType, \
40                       'myProxySvr' : myproxyserver,\
41                       'serverDN'   : self.server_dn,\

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines