def validateToolchain(self, configNode): toolchainId = None toolchainNode = None if self.toolchainId != None: toolchainId = self.toolchainId if CommonApplication.isObjectById(toolchainId): toolchainNode = CommonApplication.getObjectById(toolchainId) else: print 'ERROR: param toolchain \'{0}\' not found, ignored'.format( toolchainId) toolchainId = None if toolchainId == None: toolchainId = configNode.getToolchainId() if toolchainId != None and CommonApplication.isObjectById( toolchainId): toolchainNode = CommonApplication.getObjectById(toolchainId) else: print 'ERROR: config toolchain \'{0}\' not found, ignored'.format( toolchainId) toolchainId = None if toolchainNode == None: raise ErrorWithDescription( 'Mandatory toolchain definition missing, quitting') return (toolchainNode, toolchainId)