Lines Matching refs:environment
81 def __init__(self, environment, template_name=None): argument
82 self.environment = environment
83 if callable(environment.autoescape):
84 self.autoescape = environment.autoescape(template_name)
86 self.autoescape = environment.autoescape
99 if node.environment is None:
103 return EvalContext(node.environment)
219 def set_environment(self, environment): argument
224 node.environment = environment
424 if self.environment.sandboxed and \
425 self.operator in self.environment.intercepted_binops:
443 if self.environment.sandboxed and \
444 self.operator in self.environment.intercepted_unops:
496 self.environment.policies['compiler.ascii_str']:
504 def from_untrusted(cls, value, lineno=None, environment=None): argument
512 return cls(value, lineno=lineno, environment=environment)
642 filter_ = self.environment.filters.get(self.name)
650 eval_ctx.environment.is_async
661 args.insert(0, self.environment)
677 test = self.environment.tests.get(self.name)
711 return self.environment.getitem(self.node.as_const(eval_ctx),
731 return self.environment.getattr(self.node.as_const(eval_ctx),