def __getattr__(self, name):
        if hasattr(self.underlying, name):
            return getattr(self.underlying, name)
        try:
            return self.defaults[name]
        except __HOLE__, error:
            raise AttributeError("'%s' object has no attribute '%s'" % (self.underlying.__class__.__name__, name))

# WARNING: This is a near copy from django.template.loader.find_template_loader. Maybe I'm blind, but despite django's
#           heavy use of string imports I couldn't find an exposed utility function like this in django's source.
dataset/ETHPy150Open yaniv-aknin/django-ajaxerrors/ajaxerrors/utils.py/DefaultedAttributes.__getattr__