22 |
|
# Get all parameters for the production |
23 |
|
# -------------------------------------------------------------------------------------------------- |
24 |
|
# Set defaults for each option |
25 |
< |
block = None |
26 |
< |
dbs = '' |
25 |
> |
block = None |
26 |
> |
dbs = '' |
27 |
> |
private = False |
28 |
|
|
29 |
|
# Read new values from the command line |
30 |
|
for opt, arg in opts: |
41 |
|
cmd = "--block= required parameter not provided." |
42 |
|
raise RuntimeError, cmd |
43 |
|
|
44 |
+ |
# is it a private production |
45 |
+ |
f = block.split('#') |
46 |
+ |
if f[1] == "00000000-0000-0000-0000-000000000000": |
47 |
+ |
private = True |
48 |
+ |
#print ' Attention -- private dataset identified.' |
49 |
+ |
|
50 |
|
#--------------------------------------------------------------------------------------------------- |
51 |
|
# main |
52 |
|
#--------------------------------------------------------------------------------------------------- |
53 |
+ |
# handle private production first |
54 |
+ |
if private: |
55 |
+ |
print block + ' : ' + 'se01.cmsaf.mit.edu' |
56 |
+ |
sys.exit() |
57 |
+ |
|
58 |
|
# find relevant site for this block |
59 |
|
cmd = "dbs search " |
60 |
|
if dbs != '': |