From ab2ca8022e4bd89e87e0b7ce908022e6df350866 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 25 Jan 2011 18:46:26 +0100 Subject: Fix assorted bugs found by pylint --- ipalib/parameters.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ipalib/parameters.py') 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') -- cgit