summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-11-18 17:33:55 +0100
committerRob Crittenden <rcritten@redhat.com>2009-12-01 10:38:56 -0500
commit34deb3fef34e2e6e4dd37b29f6650c3e54879f76 (patch)
treeb11c65dfdb553eb56bd723aec6138c405e44ee7d /ipalib/parameters.py
parent40368f0d01566916cfe2476edec34048e336db60 (diff)
downloadfreeipa-34deb3fef34e2e6e4dd37b29f6650c3e54879f76.tar.gz
freeipa-34deb3fef34e2e6e4dd37b29f6650c3e54879f76.tar.xz
freeipa-34deb3fef34e2e6e4dd37b29f6650c3e54879f76.zip
Rename GeneralizedTime to AccessTime.
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index 68264af49..00880bd2b 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -1309,9 +1309,9 @@ class File(Str):
)
-class GeneralizedTime(Str):
+class AccessTime(Str):
"""
- Generalized time parameter type.
+ Access time parameter type.
Accepts values conforming to generalizedTime as defined in RFC 4517
section 3.3.13 without time zone information.
@@ -1427,7 +1427,7 @@ class GeneralizedTime(Str):
if len(t) not in (10, 12, 14):
raise ValueError('incomplete generalized time')
if not t.isnumeric():
- raise ValueError('generalized time non-numeric')
+ raise ValueError('time non-numeric')
# don't check year value, with time travel and all :)
self._check_month_num(t[4:6])
year_num = int(t[0:4])
@@ -1450,7 +1450,7 @@ class GeneralizedTime(Str):
raise ValueError('invalid time range separator')
self._check_generalized(ts[3])
if int(ts[1]) >= int(ts[3]):
- raise ValueError('invalid generalized time range')
+ raise ValueError('invalid time range')
elif ts[0] == 'periodic':
if ts[1] == 'yearly':
index = self._check_Y_spec(ts, 2)