def configure_mappers():
 if (not Mapper._new_mappers):
  return
 _CONFIGURE_MUTEX.acquire()
 try:
  global _already_compiling
  if _already_compiling:
   return
  _already_compiling = True
  try:
   if (not Mapper._new_mappers):
    return
   Mapper.dispatch._for_class(Mapper).before_configured()
   for mapper in list(_mapper_registry):
    if getattr(mapper, '_configure_failed', False):
     e = sa_exc.InvalidRequestError(("One or more mappers failed to initialize - can't proceed with initialization of other mappers. Triggering mapper: '%s'. Original exception was: %s" % (mapper, mapper._configure_failed)))
     e._configure_failed = mapper._configure_failed
     raise e
    if (not mapper.configured):
     try:
      mapper._post_configure_properties()
      mapper._expire_memoizations()
      mapper.dispatch.mapper_configured(mapper, mapper.class_)
     except Exception:
      exc = sys.exc_info()[1]
      if (not hasattr(exc, '_configure_failed')):
       mapper._configure_failed = exc
      raise
   Mapper._new_mappers = False
  finally:
   _already_compiling = False
 finally:
  _CONFIGURE_MUTEX.release()
 Mapper.dispatch._for_class(Mapper).after_configured()

def configure_mappers ( ) : if ( not Mapper . _new_mappers ) : return _CONFIGURE_MUTEX . acquire ( ) try : global _already_compiling if _already_compiling : return _already_compiling = True try : if ( not Mapper . _new_mappers ) : return Mapper . dispatch . _for_class ( Mapper ) . before_configured ( ) for mapper in list ( _mapper_registry ) : if getattr ( mapper , '_configure_failed' , False ) : e = sa_exc . InvalidRequestError ( ( "One or more mappers failed to initialize - can't proceed with initialization of other mappers. Triggering mapper: '%s'. Original exception was: %s" % ( mapper , mapper . _configure_failed ) ) ) e . _configure_failed = mapper . _configure_failed raise e if ( not mapper . configured ) : try : mapper . _post_configure_properties ( ) mapper . _expire_memoizations ( ) mapper . dispatch . mapper_configured ( mapper , mapper . class_ ) except Exception : exc = sys . exc_info ( ) [ 1 ] if ( not hasattr ( exc , '_configure_failed' ) ) : mapper . _configure_failed = exc raise Mapper . _new_mappers = False finally : _already_compiling = False finally : _CONFIGURE_MUTEX . release ( ) Mapper . dispatch . _for_class ( Mapper ) . after_configured ( )
initialize the inter-mapper relationships of all mappers that have been constructed thus far .