def __getattr__(self, key,load_if_lazy = True):

        try:
            return super(Document,self).__getattr__(key)
        except AttributeError:
            pass
        try:
            if self._lazy and self._autoload:
                self.revert()
            if key in self._properties:
                return self._properties[key]
            return self._attributes[key]
        except KeyError:
            raise AttributeError(key)
dataset/ETHPy150Open adewes/blitzdb/blitzdb/document.py/Document.__getattr__/original