#NEWLINE# def _do_options_test( self , configs ) : #NEWLINE# #INDENT# ( users , Keyword , orders , items , order_items , Order , Item , User , keywords , item_keywords ) = ( self . tables . users , self . classes . Keyword , self . tables . orders , self . tables . items , self . tables . order_items , self . classes . Order , self . classes . Item , self . classes . User , self . tables . keywords , self . tables . item_keywords ) #NEWLINE# mapper ( User , users , properties = { #NEWLINE# #INDENT# 'orders' : relationship ( Order , order_by = orders . c . id ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# mapper ( Order , orders , properties = { #NEWLINE# #INDENT# 'items' : relationship ( Item , secondary = order_items , order_by = items . c . id ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# mapper ( Item , items , properties = { #NEWLINE# #INDENT# 'keywords' : relationship ( Keyword , secondary = item_keywords , order_by = keywords . c . id ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# mapper ( Keyword , keywords ) #NEWLINE# callables = { #NEWLINE# #INDENT# 'joinedload' : joinedload , #NEWLINE# 'subqueryload' : subqueryload , #NEWLINE# #UNINDENT# } #NEWLINE# for ( o , i , k , count ) in configs : #NEWLINE# #INDENT# options = [ ] #NEWLINE# if ( o in callables ) : #NEWLINE# #INDENT# options . append ( callables [ o ] ( User . orders ) ) #NEWLINE# #UNINDENT# if ( i in callables ) : #NEWLINE# #INDENT# options . append ( callables [ i ] ( User . orders , Order . items ) ) #NEWLINE# #UNINDENT# if ( k in callables ) : #NEWLINE# #INDENT# options . append ( callables [ k ] ( User . orders , Order . items , Item . keywords ) ) #NEWLINE# #UNINDENT# self . _do_query_tests ( options , count )