def __getattr__(self, name):
        "Allows contents to be accessed only if not in transaction."
        table = self.__data.where(name=name)
        assert len(table) < 2, 'Name is abmiguous!'
        assert len(table) > 0, 'Object was not found!'
        assert not table.first('lock').locked, 'A transaction is in place!'
        if table.first('type') is _View:
            return table.first('data').value
        return table.first('data')
Allows contents to be accessed only if not in transaction.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py