def _load_rbr(self, load_ast=True): if load_ast: self.ast = build_ast(self.rbr_content) # looking for the root path for definition in self.ast: if definition.type != 'root': continue self.root_path = definition.value break self.globs = self._create_globs() self.types = self._create_types() self.mapper = WebMapper(self)