CMS 3D CMS Logo

Functions
cmssw_das_client Namespace Reference

Functions

def get_data (query, limit=None, threshold=None, idx=None, host=None)
 
def get_value (data, filters, base=10)
 

Function Documentation

def cmssw_das_client.get_data (   query,
  limit = None,
  threshold = None,
  idx = None,
  host = None 
)

Definition at line 8 of file cmssw_das_client.py.

Referenced by mps_create_file_lists.das_client().

8 def get_data(query, limit=None, threshold=None, idx=None, host=None):
9  cmd_opts = "--format=json"
10  if threshold is not None: cmd_opts += " --threshold=%s" % threshold
11  if limit is not None: cmd_opts += " --limit=%s" % limit
12  if idx is not None: cmd_opts += " --idx=%s" % idx
13  if host is not None: cmd_opts += " --host=%s" % host
14  err, out = getstatusoutput("das_client %s --query '%s'" % (cmd_opts, query))
15  if not err: return loads(out)
16  return {'status' : 'error', 'reason' : out}
17 
def get_data(query, limit=None, threshold=None, idx=None, host=None)
def cmssw_das_client.get_value (   data,
  filters,
  base = 10 
)

Definition at line 5 of file cmssw_das_client.py.

5 def get_value(data, filters, base=10):
6  return das_get_value(data, filters, base)
7 
def get_value(data, filters, base=10)