#NEWLINE# @ classmethod #NEWLINE# def system( cls , foreign_id ) : #NEWLINE# #INDENT# if ( not hasattr ( current_app , '_authz_roles' ) ) : #NEWLINE# #INDENT# current_app . _authz_roles = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if ( foreign_id not in current_app . _authz_roles ) : #NEWLINE# #INDENT# role = cls . by_foreign_id ( role ) #NEWLINE# if ( role is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# current_app . _authz_roles [ foreign_id ] = role . id #NEWLINE# #UNINDENT# return current_app . _authz_roles [ foreign_id ]