#NEWLINE# def GetGroupsForPlugins( self , Plugins ) : #NEWLINE# #INDENT# groups = self . db . session . query ( models . Plugin . group ) . filter ( or_ ( models . Plugin . code . in_ ( Plugins ) , models . Plugin . name . in_ ( Plugins ) ) ) . distinct ( ) . all ( ) #NEWLINE# groups = [ Plugins [ 0 ] for i in groups ] #NEWLINE# return groups