ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/Processing/bin/sites.py
(Generate patch)

Comparing UserCode/MitProd/Processing/bin/sites.py (file contents):
Revision 1.4 by paus, Tue Feb 28 11:54:36 2012 UTC vs.
Revision 1.5 by paus, Fri Jul 26 14:53:30 2013 UTC

# Line 22 | Line 22 | except getopt.GetoptError, ex:
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:
# Line 40 | Line 41 | if block == None:
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 != '':

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines