#NEWLINE# def rules( self , id = None ) : #NEWLINE# #INDENT# if id : #NEWLINE# #INDENT# return ProductRules . get ( self . id , id , connection = self . _connection ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ProductRules . all ( id . id , connection = self . _connection )