58 |
|
raise CrabException(msg) |
59 |
|
self.sched = common.scheduler.name().upper() |
60 |
|
self.protocol = self.srm_version |
61 |
< |
if self.sched in ['CAF','LSF']:self.protocol = 'direct' |
61 |
> |
if self.sched in ['CAF','LSF']: |
62 |
> |
self.protocol = 'direct' |
63 |
> |
self.SE = {'CAF':'caf.cern.ch', 'LSF':''} |
64 |
|
|
65 |
|
self.forced_path = '/store/user/' |
66 |
|
if not self.usePhedex: |
92 |
|
if self.protocol == 'direct': |
93 |
|
query=endpoint |
94 |
|
SE_PATH = endpoint |
95 |
< |
SE = self.sched |
95 |
> |
SE = self.SE[self.sched] |
96 |
|
else: |
97 |
|
url = 'http://'+endpoint.split('://')[1] |
98 |
|
# python > 2.4 |
102 |
|
SE_PATH = endpoint.split(host)[1] |
103 |
|
USER = (query.split('user')[1]).split('/')[1] |
104 |
|
else: |
105 |
+ |
#### to test ##### |
106 |
+ |
#url = 'http://'+endpoint.split('://')[1] |
107 |
+ |
#scheme, host, path, params, query, fragment = urlparse(url) |
108 |
+ |
#SE = host.split(':')[0] |
109 |
+ |
#SE_PATH = endpoint.split(host)[1] |
110 |
|
SE = self.node |
111 |
|
SE_PATH = self.user_se_path + self.user_remote_dir |
112 |
|
try: |