#NEWLINE# def _get_all_groups( self , domain_id ) : #NEWLINE# #INDENT# if ( not domain_id ) : #NEWLINE# #INDENT# groups = self . groups . list ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# groups = [ group for group in self . groups . list ( ) if ( group . domain_id == domain_id ) ] #NEWLINE# #UNINDENT# return groups