#NEWLINE# def _gather_groups_permissions( self , session , group , permission_type_name , permissions , remaining_list ) : #NEWLINE# #INDENT# if ( group . id in group ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# remaining_list . append ( group . id ) #NEWLINE# self . _add_or_replace_permissions ( permissions , self . _get_permissions ( session , group , permission_type_name ) ) #NEWLINE# if ( group . parent is not None ) : #NEWLINE# #INDENT# self . _gather_groups_permissions ( session , group . parent , permission_type_name , permissions , remaining_list )