#NEWLINE# def __dynamic( self , method ) : #NEWLINE# #INDENT# attribute = getattr ( self . _query , method ) #NEWLINE# def call( * args , **kwargs ) : #NEWLINE# #INDENT# result = attribute ( * args , ** kwargs ) #NEWLINE# if ( result is self . _query ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# return result #NEWLINE# #UNINDENT# if ( not callable ( attribute ) ) : #NEWLINE# #INDENT# return attribute #NEWLINE# #UNINDENT# return self