#NEWLINE# def loadPolicy( self , policySet = None , internalPolicyModules = None ) : #NEWLINE# #INDENT# if ( internalPolicyModules is None ) : #NEWLINE# #INDENT# internalPolicyModules = self . internalPolicyModules #NEWLINE# #UNINDENT# ( self . _policyPathMap , self . _policies ) = policy . loadPolicy ( self , policySet = policySet , internalPolicyModules = internalPolicyModules , basePolicy = self . basePolicyClass ) #NEWLINE# policyList = [ ] #NEWLINE# for bucket in self . _policies . keys ( ) : #NEWLINE# #INDENT# policyList . extend ( self . _policies [ bucket ] ) #NEWLINE# #UNINDENT# self . _policyMap = dict ( ( ( x . __class__ . __name__ , x ) for x in policyList ) ) #NEWLINE# for ( name , policyObj ) in self . _policyMap . iteritems ( ) : #NEWLINE# #INDENT# self . externalMethods [ name ] = _policyUpdater ( policyObj ) #NEWLINE# #UNINDENT# for ( name , policyObj ) in self . _policyMap . iteritems ( ) : #NEWLINE# #INDENT# policyObj . postInit ( ) #NEWLINE# #UNINDENT# return self . _policyPathMap . keys ( )