def __getattr__(self, name):
        try:
            var = self.environ['bottle.request.ext.%s'%name]
            return var.__get__(self) if hasattr(var, '__get__') else var
        except KeyError:
            raise AttributeError('Attribute %r not defined.' % name)
TODO: add docstring
dataset/ETHPy150Open adampresley/bottlepy-bootstrap/app/bottle.py/BaseRequest.__getattr__--crossover with--dataset/ETHPy150Open treasure-data/td-client-python/tdclient/database_api.py/DatabaseAPI.delete_database