#NEWLINE# def resolveAuxLinks( self ) : #NEWLINE# #INDENT# ' Resolve aux links\n\n            If aux.original\n               aux.main for each aux is not assigned here but is assigned when\n              frame.enter before aux.enterAll() so can reuse aux in other frames.\n            Otherwise\n               assign aux.main to self\n        ' #NEWLINE# for ( i , aux ) in enumerate ( self . auxes ) : #NEWLINE# #INDENT# if isinstance ( aux , Mapping ) : #NEWLINE# #INDENT# clone = aux [ 'clone' ] #NEWLINE# original = aux [ 'original' ] #NEWLINE# schedule = aux [ 'schedule' ] #NEWLINE# human = aux [ 'human' ] #NEWLINE# count = aux [ 'count' ] #NEWLINE# inode = aux [ 'inode' ] #NEWLINE# if ( schedule != AUX ) : #NEWLINE# #INDENT# msg = "ResolveError: Invalid insular clone schedule '{0}' for {1}." . format ( schedule , original ) #NEWLINE# raise excepting . ResolveError ( msg , name = clone , value = self . name , human = human , count = count ) #NEWLINE# #UNINDENT# if ( clone != 'mine' ) : #NEWLINE# #INDENT# msg = "Aux insular clone name must be 'mine' not '{0}'" . format ( clone ) #NEWLINE# raise excepting . ResolveError ( msg , name = clone , value = self . name , human = human , count = count ) #NEWLINE# #UNINDENT# clone = Framer . nameUid ( prefix = original ) #NEWLINE# while ( clone in Framer . Names ) : #NEWLINE# #INDENT# clone = Framer . nameUid ( prefix = original ) #NEWLINE# #UNINDENT# console . terse ( "         Cloning original '{0}' as insular clone '{1}'\n" . format ( original , clone ) ) #NEWLINE# original = resolveFramer ( original , who = self . name , desc = 'original' , contexts = [ MOOT ] , human = human , count = count ) #NEWLINE# clone = original . clone ( name = clone , schedule = schedule ) #NEWLINE# self . framer . assignFrameRegistry ( ) #NEWLINE# clone . original = False #NEWLINE# clone . insular = True #NEWLINE# if inode : #NEWLINE# #INDENT# if clone . inode : #NEWLINE# #INDENT# if ( inode == 'mine' ) : #NEWLINE# #INDENT# if ( ( clone . inode != 'mine' ) and ( clone . inode != 'main' ) and ( not clone . inode . startswith ( '.' ) ) ) : #NEWLINE# #INDENT# clone . inode = '.{0}' . format ( clone . inode ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# clone . inode = inode #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# clone . inode = inode #NEWLINE# #UNINDENT# #UNINDENT# self . auxes [ i ] = aux = clone #NEWLINE# self . store . house . resolvables . append ( clone ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . auxes [ i ] = aux = resolveFramer ( aux , who = self . name , desc = 'aux' , contexts = [ AUX ] ) #NEWLINE# #UNINDENT# if ( not aux . original ) : #NEWLINE# #INDENT# if aux . main : #NEWLINE# #INDENT# msg = "Aux already assigned to main '{0}'" . format ( aux . main . name ) #NEWLINE# raise excepting . ResolveError ( msg , name = aux . name , value = self . name ) #NEWLINE# #UNINDENT# aux . main = self