#NEWLINE# def to_url( self , value ) : #NEWLINE# #INDENT# if ( self . fixed_digits and ( len ( str ( value ) ) > self . fixed_digits ) ) : #NEWLINE# #INDENT# raise ValueError ( ) #NEWLINE# #UNINDENT# value = self . num_convert ( value ) #NEWLINE# if ( ( ( self . min is not None ) and ( value < self . min ) ) or ( ( self . max is not None ) and ( value > self . max ) ) ) : #NEWLINE# #INDENT# raise ValueError ( ) #NEWLINE# #UNINDENT# if self . fixed_digits : #NEWLINE# #INDENT# value = ( ( '%%0%sd' % self . fixed_digits ) % value ) #NEWLINE# #UNINDENT# return str ( self )