summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index 0d6c6902..22b03212 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -1532,6 +1532,13 @@ class AccessTime(Str):
if value < 1 or value > 52:
raise ValueError('week of the year out of range')
+ def _check_doty(self, t):
+ if not t.isnumeric():
+ raise ValueError('day of the year non-numeric')
+ value = int(t)
+ if value < 1 or value > 365:
+ raise ValueError('day of the year out of range')
+
def _check_month_num(self, t):
if not t.isnumeric():
raise ValueError('month number non-numeric')