Exemple #1
0
    def names_dicts(self, search_global):
        for names_dict in self._wrapped_module.names_dicts(search_global):
            yield names_dict

        for namespace_obj in self._namespace_objects:
            m = mixed.MixedObject(self._evaluator, namespace_obj,
                                  self._parser_module.name)
            for names_dict in m.names_dicts(False):
                yield names_dict
Exemple #2
0
    def get_filters(self, *args, **kwargs):
        for filter in self._module_context.get_filters(*args, **kwargs):
            yield filter

        for namespace_obj in self._namespace_objects:
            compiled_object = _create(self.evaluator, namespace_obj)
            mixed_object = mixed.MixedObject(self.evaluator,
                                             parent_context=self,
                                             compiled_object=compiled_object,
                                             tree_context=self._module_context)
            for filter in mixed_object.get_filters(*args, **kwargs):
                yield filter