#NEWLINE# def SetOperator( self , operator ) : #NEWLINE# #INDENT# 'Sets the operator for this expression.' #NEWLINE# self . operator = operator #NEWLINE# attribute_type = self . attribute_obj . GetRDFValueType ( ) #NEWLINE# operators = attribute_type . operators #NEWLINE# ( self . number_of_args , self . operator_method ) = operators . get ( operator , ( 0 , None ) ) #NEWLINE# if ( self . operator_method is None ) : #NEWLINE# #INDENT# raise lexer . ParseError ( ( "Operator %s not defined on attribute '%s'" % ( self , self . attribute ) ) ) #NEWLINE# #UNINDENT# self . operator_method = getattr ( attribute_type , self . operator_method )