code: def unsafe_undefined(self, obj, attribute):
          
          return self.undefined('access to attribute %r of %r '
                                'object is unsafe.' % (
              attribute,
              obj.__class__.__name__
          ), name=attribute, obj=obj, exc=SecurityError)
docs: Return an undefined object for unsafe attributes.