+
    4Ssi	                     B    ^ RI HtHt  ! R R]4      t ! R R]4      tR# )    )	ValidatorValidationErrorc                   4   a  ] tR t^t o RtRR ltR tRtV tR# )Rangez0Checks if the value is within range min ... max.Nc                D    Vf   Vf   \        R4      hWn        W n        R # )Nz/Range without a min and max doesn't make sense.)
ValueErrorminmax)selfr	   r
   s   &&&9/usr/lib/python3/dist-packages/samba/netcmd/validators.py__init__Range.__init__   s!    ;3;NOO    c                   V P                   e;   V P                  f-   W P                   8  d   \        V RV P                    24      hR# V P                   f;   V P                  e-   W P                  8  d   \        V RV P                   24      hR# V P                   eZ   V P                  eJ   W P                   8  g   W P                  8  d(   \        V RV P                    RV P                   24      hR# R# R# )zCheck if value is within the range min ... max.

It is possible to omit min, or omit max, in which case a more
tailored error message is returned.
Nz must be at least z cannot be greater than z must be between z and )r	   r
   r   )r   fieldvalues   &&&r   __call__Range.__call__$   s     88DHH$4xx%/A$((&LMM   XX$(("6xx%g5dhhZ@B B   XX!dhh&:xx588#3%g.txxjdhhZHJ J $4 ';!r   )r
   r	   )NN	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classdictcell____classdict__s   @r   r   r      s     :J Jr   r   c                   0   a  ] tR t^9t o RtR tR tRtV tR# )OneOfz5Checks if the value is in a list of possible choices.c                &    \        V4      V n        R # )N)sortedchoices)r   r#   s   &&r   r   OneOf.__init__<   s    gr   c                |    W P                   9  d,   R P                  V P                   4      p\        V RV 24      hR# )z, z must be one of: N)r#   joinr   )r   r   r   allowed_choicess   &&& r   r   OneOf.__call__?   s;    $"ii5O!UG+<_<M"NOO %r   )r#   Nr   r   s   @r   r    r    9   s     ?'P Pr   r    N)samba.getoptr   r   r   r     r   r   <module>r+      s&   . 4JI J>	PI 	Pr   