Exemplo n.º 1
0
            self.agendaSearch([depsItem], processNode, getNodeChildren, mode="bf")

            return

        def is_app_code(classObj):
            return classObj.library.namespace == app_namespace
        # -------------------------------------------

        result = []
        warn_deps = []
        logInfos = self._console.getLevel() == "info"
        ignored_names = set()
        app_namespace = self._jobconf.get("let/APPLICATION", u'')

        # Lint stuff
        lint_check, lint_opts = CodeGenerator.lint_opts([])
        if lint_check:
            lint_opts.ignore_undefined_globals = True # do compile-level checks *except* unknown globals (done in CodeGenerator)

        # No dependency calculation
        if len(includeWithDeps) == 0:
            self._console.info("Including all known classes")
            result = self._classesObj.keys()

            # In this case the block works like an explicit exclude
            # because all classes are included like an explicit include.
            for classId in excludeWithDeps:
                result.remove(classId)

            # TODO: use lint_check
Exemplo n.º 2
0
            return

        def is_app_code(classObj):
            return classObj.library.namespace == app_namespace

        # -------------------------------------------

        result = []
        warn_deps = []
        logInfos = self._console.getLevel() == "info"
        ignored_names = set()
        app_namespace = self._jobconf.get("let/APPLICATION", u'')

        # Lint stuff
        lint_check, lint_opts = CodeGenerator.lint_opts([])
        if lint_check:
            lint_opts.ignore_undefined_globals = True  # do compile-level checks *except* unknown globals (done in CodeGenerator)

        # No dependency calculation
        if len(includeWithDeps) == 0:
            self._console.info("Including all known classes")
            result = self._classesObj.keys()

            # In this case the block works like an explicit exclude
            # because all classes are included like an explicit include.
            for classId in excludeWithDeps:
                result.remove(classId)

            # TODO: use lint_check