I pushed tis out under the 1-liner rule. There can be as many as 6 weeks in a month (see May of this year as an example).

rob
--- Begin Message ---
 ipalib/parameters.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4924270b453655270da03b14f3e7825713820f0a
Author: Rob Crittenden <[email protected]>
Date:   Thu Jun 3 09:25:25 2010 -0400

    Increase supported weeks per month from 4 to 6 in AccessTime() type

diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index 589a092..f97c422 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -1423,7 +1423,7 @@ class AccessTime(Str):
         if not t.isnumeric():
             raise ValueError('week of the month non-numeric')
         value = int(t)
-        if value < 1 or value > 4:
+        if value < 1 or value > 6:
             raise ValueError('week of the month out of range')
 
     def _check_woty(self, t):



--- End Message ---
_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to