#NEWLINE# def set_order( self , order ) : #NEWLINE# #INDENT# if ( order in self . ordered_fields ) : #NEWLINE# #INDENT# self . _data [ 'order_by' ] = order #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( 'Value must be one of: %s' % ', ' . join ( self . ordered_fields ) ) )