예제 #1
0
 def __call__(self, value):
     return IS_DECIMAL_IN_RANGE.__call__(self, value)
예제 #2
0
 def __init__(self, *a, **b):
     IS_DECIMAL_IN_RANGE.__init__(self, *a, **b)
     if not 'error_message' in b:
         self.error_message = self.error_message.replace(' a number ',
                 ' a dollar amount ')