(self, name)
Search in self.environ for additional user defined attributes.
Search in self.environ for additional user defined attributes.
Search in self . environ for additional user defined attributes .
def __getattr__(self, name):
        ''' Search in self.environ for additional user defined attributes. '''
        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)
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 )