Lines Matching full:undefined
107 :class:`Undefined` object for missing variables.
132 return self.environment.undefined('there is no parent block '
148 :class:`Undefined` object with the name of the name looked up.
154 return self.environment.undefined(name=key)
195 return __self.environment.undefined('value was undefined because '
230 undefined.
233 if isinstance(item, Undefined):
267 undefined('there is no parent block called %r.' %
409 value = self._environment.undefined(
419 caller = self._environment.undefined('No caller defined',
442 class Undefined(object):
443 """The default undefined type. This undefined type can be printed and
446 >>> foo = Undefined(name='foo')
454 UndefinedError: 'foo' is undefined
467 """Regular callback function for undefined objects that raises an
472 hint = '%r is undefined' % self._undefined_name
523 return 'Undefined'
527 class DebugUndefined(Undefined):
528 """An undefined that returns the debug info when printed.
538 UndefinedError: 'foo' is undefined
550 return u'{{ undefined value printed: %s }}' % self._undefined_hint
554 class StrictUndefined(Undefined):
555 """An undefined that barks on print and iteration as well as boolean
563 UndefinedError: 'foo' is undefined
567 UndefinedError: 'foo' is undefined
571 UndefinedError: 'foo' is undefined
576 Undefined._fail_with_undefined_error
581 del Undefined.__slots__, DebugUndefined.__slots__, StrictUndefined.__slots__