Beispiel #1
0
    def __call__(self, payloadNode):
        if payloadNode.cfgInterface != None:
            generator = CfgGenerator(payloadNode.cfgInterface, False,
                                     payloadNode.applicationControls)
            self[payloadNode.name] = generator
            return

        if payloadNode.configuration in ("", None):
            return  # Is not a config file
        try:
            generator = CfgGenerator(payloadNode.configuration, True,
                                     payloadNode.applicationControls)
            self[payloadNode.name] = generator
        except StandardError, ex:
            return  # Can't read config file => not a config file
Beispiel #2
0
    def __call__(self, jobSpecNode):
        """
        _generateJobConfig_
        
        Operator to act on a JobSpecNode tree to convert the template
        config file into a JobSpecific Config File
        
        """
        if jobSpecNode.type != "CMSSW":
            return

        if jobSpecNode.configuration in ("", None):
            #  //
            # // Isnt a config file
            #//
            return
        try:
            generator = CfgGenerator(jobSpecNode.configuration, True)
        except StandardError, ex:
            #  //
            # // Cant read config file => not a config file
            #//
            return