'At least one of user_limit and ip_limit should be set for this function
to have any effect.
Arguments:
user_limit: RateLimit -- The per-user rate limit.
ip_limit: RateLimit -- The per-IP rate limit.
error -- the error message to use when the limit is exceeded.'

def __init__(self, user_limit=None, ip_limit=None, error=errors.RATELIMIT, *a, **kw):

    self.user_limit = user_limit
    self.ip_limit = ip_limit
    self.error = error
    self.seconds = None
    Validator.__init__(self, *a, **kw)
