#NEWLINE# def get_data( self ) : #NEWLINE# #INDENT# groups = [ ] #NEWLINE# domain_context = self . request . session . get ( 'domain_context' , None ) #NEWLINE# if policy . check ( ( ( 'identity' , 'identity:list_groups' ) , ) , self . request ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# groups = api . keystone . group_list ( groups . request , domain = domain_context ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# exceptions . handle ( self . request , _ ( 'Unable to retrieve group list.' ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# msg = _ ( 'Insufficient privilege level to view group information.' ) #NEWLINE# messages . info ( self . request , msg ) #NEWLINE# #UNINDENT# return groups