def create_context_manager(connection=None):
 ctxt_mgr = enginefacade.transaction_context()
 ctxt_mgr.configure(**_get_db_conf(CONF.database, connection=connection))
 return ctxt_mgr

def create_context_manager ( connection = None ) : ctxt_mgr = enginefacade . transaction_context ( ) ctxt_mgr . configure ( ** _get_db_conf ( CONF . database , connection = connection ) ) return ctxt_mgr
return a context manager for a cell database connection .