#NEWLINE# def make_atom( self , child , qn ) : #NEWLINE# #INDENT# ( obj , lookup_type , value_annot , params ) = child #NEWLINE# if isinstance ( value_annot , GeoAnnotation ) : #NEWLINE# #INDENT# if ( lookup_type in SpatialBackend . gis_terms ) : #NEWLINE# #INDENT# ( alias , col , db_type ) = obj #NEWLINE# gwc = get_geo_where_clause ( alias , col , self , value_annot ) #NEWLINE# return ( ( gwc % value_annot . where ) , params ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError ( ( 'Invalid lookup type: %r' % lookup_type ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return super ( GeoWhereNode , self ) . make_atom ( child , qn )