示例#1
0
文件: meal.py 项目: Ma-ve/voerr
 def validate_price(self, key, price):
     if not NumberValidator.is_double(price):
         raise Error(name='price', message='Geen juiste prijs(int, float)')
     return price
示例#2
0
 def validate_price(self, key, price):
     if not NumberValidator.is_double(price):
         raise Error(name='price', message='Geen juiste prijs(int, float)')
     return price