コード例 #1
0
ファイル: RunJobUtilities.py プロジェクト: vokac/pilot
def updateCopysetups(cmd3,
                     transferType=None,
                     useCT=None,
                     directIn=None,
                     useFileStager=None):
    """ Update the relevant copysetup fields for remote I/O or file stager """

    si = SiteInformation()

    _copysetupin = readpar('copysetupin')
    _copysetup = readpar('copysetup')

    if _copysetupin != "":
        si.updateCopysetup(cmd3,
                           'copysetupin',
                           _copysetupin,
                           transferType=transferType,
                           useCT=useCT,
                           directIn=directIn,
                           useFileStager=useFileStager)
    else:
        si.updateCopysetup(cmd3,
                           'copysetup',
                           _copysetup,
                           transferType=transferType,
                           useCT=useCT,
                           directIn=directIn,
                           useFileStager=useFileStager)
コード例 #2
0
ファイル: RunJobUtilities.py プロジェクト: mlassnig/pilot
def updateCopysetups(cmd3, transferType=None, useCT=None, directIn=None, useFileStager=None):
    """ Update the relevant copysetup fields for remote I/O or file stager """

    si = SiteInformation()

    _copysetupin = readpar('copysetupin')
    _copysetup = readpar('copysetup')

    if _copysetupin != "":
        si.updateCopysetup(cmd3, 'copysetupin', _copysetupin, transferType=transferType, useCT=useCT, directIn=directIn, useFileStager=useFileStager)
    else:
        si.updateCopysetup(cmd3, 'copysetup', _copysetup, transferType=transferType, useCT=useCT, directIn=directIn, useFileStager=useFileStager)