summaryrefslogtreecommitdiffstats
path: root/ipalib/constants.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-02-12 11:01:23 -0500
committerJason Gerard DeRose <jderose@redhat.com>2010-02-12 13:14:29 -0700
commit338578d10ac0978a00948971a17a89dc95435954 (patch)
treef26b50e0df86834906d40e5a15b96b5926c533bd /ipalib/constants.py
parentb31f259b1a24b5da8a8ed80d27b1f925220e8f24 (diff)
downloadfreeipa-338578d10ac0978a00948971a17a89dc95435954.tar.gz
freeipa-338578d10ac0978a00948971a17a89dc95435954.tar.xz
freeipa-338578d10ac0978a00948971a17a89dc95435954.zip
Allow one-character Param names
This is done explicitly to support the l/localityname attribute.
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r--ipalib/constants.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py
index 0ace2a28c..79ddbca8f 100644
--- a/ipalib/constants.py
+++ b/ipalib/constants.py
@@ -26,7 +26,7 @@ All constants centralised in one file.
NULLS = (None, '', u'', tuple(), [])
# regular expression NameSpace member names must match:
-NAME_REGEX = r'^[a-z][_a-z0-9]*[a-z0-9]$'
+NAME_REGEX = r'^[a-z][_a-z0-9]*[a-z0-9]$|^[a-z]$'
# Format for ValueError raised when name does not match above regex:
NAME_ERROR = 'name must match %r; got %r'