diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-01-17 16:23:53 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2011-01-18 10:03:55 -0500 |
commit | 886e417fd76b25a28cde70be8de2851047ed0338 (patch) | |
tree | 3eeeae423ce3f9fb199dcf415f8143039af33eee /ipalib/parameters.py | |
parent | ec3e7f1202935e4c82fd8b7c76a4d03d9ee6a19b (diff) | |
download | freeipa-886e417fd76b25a28cde70be8de2851047ed0338.tar.gz freeipa-886e417fd76b25a28cde70be8de2851047ed0338.tar.xz freeipa-886e417fd76b25a28cde70be8de2851047ed0338.zip |
Set the default Int maxvalue to the maximum XML-RPC can handle.
Also handle marshalling errors thrown by xmlrpclib more gracefully.
ticket 770
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r-- | ipalib/parameters.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py index 78eacde25..0d6c69029 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -109,6 +109,7 @@ from errors import PasswordMismatch from constants import NULLS, TYPE_ERROR, CALLABLE_ERROR from text import Gettext, FixMe import csv +from xmlrpclib import MAXINT class DefaultFrom(ReadOnly): @@ -1002,7 +1003,7 @@ class Int(Number): kwargs = Param.kwargs + ( ('minvalue', int, None), - ('maxvalue', int, None), + ('maxvalue', int, int(MAXINT)), ) def __init__(self, name, *rules, **kw): |