CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
MatrixInjector Namespace Reference

Classes

class  MatrixInjector
 

Functions

def performInjectionOptionTest
 
def upload_to_couch_oneArg
 

Function Documentation

def MatrixInjector.performInjectionOptionTest (   opt)

Definition at line 7 of file MatrixInjector.py.

7 
9  if opt.show:
10  print 'Not injecting to wmagent in --show mode. Need to run the worklfows.'
11  sys.exit(-1)
12  if opt.wmcontrol=='init':
13  #init means it'll be in test mode
14  opt.nProcs=0
15  if opt.wmcontrol=='test':
16  #means the wf were created already, and we just dryRun it.
17  opt.dryRun=True
18  if opt.wmcontrol=='submit' and opt.nProcs==0:
19  print 'Not injecting to wmagent in -j 0 mode. Need to run the worklfows.'
20  sys.exit(-1)
21  if opt.wmcontrol=='force':
22  print "This is an expert setting, you'd better know what you're doing"
23  opt.dryRun=True
def performInjectionOptionTest
def MatrixInjector.upload_to_couch_oneArg (   arguments)

Definition at line 24 of file MatrixInjector.py.

24 
25 def upload_to_couch_oneArg(arguments):
26  from modules.wma import upload_to_couch
27  (filePath,labelInCouch,user,group,where) = arguments
28  cacheId=upload_to_couch(filePath,
29  labelInCouch,
30  user,
31  group,
32  test_mode=False,
33  url=where)
34  return cacheId
35 
def upload_to_couch_oneArg