CMS 3D CMS Logo

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.

00008                                    :
00009     if opt.show:
00010         print 'Not injecting to wmagent in --show mode. Need to run the worklfows.'
00011         sys.exit(-1)
00012     if opt.wmcontrol=='init':
00013         #init means it'll be in test mode
00014         opt.nThreads=0
00015     if opt.wmcontrol=='test':
00016         #means the wf were created already, and we just dryRun it.
00017         opt.dryRun=True
00018     if opt.wmcontrol=='submit' and opt.nThreads==0:
00019         print 'Not injecting to wmagent in -j 0 mode. Need to run the worklfows.'
00020         sys.exit(-1)
00021     if opt.wmcontrol=='force':
00022         print "This is an expert setting, you'd better know what you're doing"
00023         opt.dryRun=True

def MatrixInjector::upload_to_couch_oneArg (   arguments)

Definition at line 24 of file MatrixInjector.py.

00025                                      :
00026     from modules.wma import upload_to_couch
00027     (filePath,labelInCouch,user,group,where) = arguments
00028     cacheId=upload_to_couch(filePath,
00029                             labelInCouch,
00030                             user,
00031                             group,
00032                             test_mode=False,
00033                             url=where)
00034     return cacheId
00035