def shell(self): """ This creates a grid shell instance which is used by the VomsProxy only when needed """ if self._shell is None: self._shell = GridShell.getShell() return self._shell
def __construct__(self, args): self.localDir = '' if len(args) == 1 and isinstance(args[0], str): self.namePattern = args[0] elif len(args) == 2 and isinstance(args[0], str) and isinstance(args[1], str): self.namePattern = args[0] self.localDir = args[1] self.shell = GridShell.getShell() self.locations = []
def __init__(self, namePattern='', localDir='', **kwds): """ namePattern is the pattern of the output file that has to be written into LCG SE """ super(LCGSEFile, self).__init__() self.namePattern = namePattern self.localDir = localDir self.locations = [] self.shell = GridShell.getShell()
def __construct__(self, args): self.localDir = '' if len(args) == 1 and isinstance(args[0], str): self.namePattern = args[0] elif len(args) == 2 and isinstance(args[0], str) and isinstance( args[1], str): self.namePattern = args[0] self.localDir = args[1] self.shell = GridShell.getShell() self.locations = []