(self, item)
return getattr(self.wrapped, item)
If an attribute is not found in this class, it is searched in the wrapped model
If an attribute is not found in this class, it is searched in the wrapped model
If an attribute is not found in this class it is searched in the wrapped model
def __getattr__(self, item):
        """
        If an attribute is not found in this class, it is searched in the wrapped model
        """
        # Exception for AF storages, if a method with the same name exists in this class, do not find the cache
        # in the wrapped model.
        if item.endswith('_AF_storage'):
            method = item[1:].rstrip('_AF_storage')
            if method in dir(self):
                raise AttributeError("{0} has no attribute {1}".format(self.__class__.__name__, item))

        return getattr(self.wrapped, item)
def __getattr__ ( self , item ) : # Exception for AF storages, if a method with the same name exists in this class, do not find the cache # in the wrapped model. if item . endswith ( '_AF_storage' ) : method = item [ 1 : ] . rstrip ( '_AF_storage' ) if method in dir ( self ) : raise AttributeError ( "{0} has no attribute {1}" . format ( self . __class__ . __name__ , item ) ) return getattr ( self . wrapped , item )