equal
deleted
inserted
replaced
29 except ValueError: |
29 except ValueError: |
30 raise ValidateException(field=field) |
30 raise ValidateException(field=field) |
31 except TypeError: |
31 except TypeError: |
32 raise ValidateException(field=field) |
32 raise ValidateException(field=field) |
33 |
33 |
34 if minv and ret < minv: |
34 if minv is not None and ret < minv: |
35 raise ValidateException(field=field) |
35 raise ValidateException(field=field) |
36 |
36 |
37 if maxv and ret > maxv: |
37 if maxv is not None and ret > maxv: |
38 raise ValidateException(field=field) |
38 raise ValidateException(field=field) |
39 |
39 |
40 return ret |
40 return ret |
41 |
41 |
42 def vHash(value,field,minlength=None,maxlength=None): |
42 def vHash(value,field,minlength=None,maxlength=None): |