<s> """<STR_LIT>""" <EOL> class SpatialOperator ( object ) : <EOL> """<STR_LIT>""" <EOL> sql_template = None <EOL> def __init__ ( self , op = None , func = None ) : <EOL> self . op = op <EOL> self . func = func <EOL> @ property <EOL> def default_template ( self ) : <EOL> if self . func : <EOL> return '<STR_LIT>' <EOL> else : <EOL> return '<STR_LIT>' <EOL> def as_sql ( self , connection , lookup , template_params , sql_params ) : <EOL> sql_template = self . sql_template or lookup . sql_template or self . default_template <EOL> template_params . update ( { '<STR_LIT>' : self . op , '<STR_LIT>' : self . func } ) <EOL> return sql_template % template_params , sql_params </s>
