def close_zodb(DataBase):
    """Closes the ZODB.

    This function MUST be called at the end of each program !!!
    See open_zodb() for a description of the argument.
    """
    get_transaction().abort()
    DataBase[1].close()
    DataBase[2].close()
    DataBase[3].close()
    return True
Closes the ZODB.

    This function MUST be called at the end of each program !!!
    See open_zodb() for a description of the argument.
    
recipes/Python/409012_A_Simple_ZODB_viewer_in_wxPython/recipe-409012.py