#NEWLINE# def __getattr__( self , key ) : #NEWLINE# #INDENT# if ( key == 'id' ) : #NEWLINE# #INDENT# self . query = MockQuery ( field = 'id' , db = self . r_server , prefix = self . keyprefix , session_expiry = key . session_expiry , with_lock = self . with_lock , unique_key = self . unique_key ) #NEWLINE# return self . query #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == '_db' ) : #NEWLINE# #INDENT# return self . db