#NEWLINE# def my_users( self ) : #NEWLINE# #INDENT# now = datetime . utcnow ( ) #NEWLINE# users = self . session . query ( label ( 'name' , User . username ) , label ( 'role' , GroupEdge . _role ) ) . filter ( ( GroupEdge . group_id == self . id ) , ( GroupEdge . member_pk == User . id ) , ( GroupEdge . member_type == 0 ) , ( GroupEdge . active == True ) , ( self . enabled == True ) , ( User . enabled == True ) , or_ ( ( GroupEdge . expiration > now ) , ( GroupEdge . expiration == None ) ) ) . all ( ) #NEWLINE# return self