Home | History | Annotate | Download | only in jinja2

Lines Matching refs:attribute

121     """Test if the attribute given is an internal python attribute.  For
122 example this function returns `True` for the `func_code` attribute of
153 """This function checks if an attribute on a builtin mutable object
270 attribute of an object is safe to access. Per default all attributes
279 considered safe unless the `unsafe_callable` attribute exists and is
325 def getattr(self, obj, attribute):
327 attribute. The attribute passed *must* be a bytestring.
330 value = getattr(obj, attribute)
333 return obj[attribute]
337 if self.is_safe_attribute(obj, attribute, value):
339 return self.unsafe_undefined(obj, attribute)
340 return self.undefined(obj=obj, name=attribute)
342 def unsafe_undefined(self, obj, attribute):
344 return self.undefined('access to attribute %r of %r '
346 attribute,
348 ), name=attribute, obj=obj, exc=SecurityError)