diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-02-12 11:01:23 -0500 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2010-02-12 13:14:29 -0700 |
commit | 338578d10ac0978a00948971a17a89dc95435954 (patch) | |
tree | f26b50e0df86834906d40e5a15b96b5926c533bd /ipalib/constants.py | |
parent | b31f259b1a24b5da8a8ed80d27b1f925220e8f24 (diff) | |
download | freeipa-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.py | 2 |
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' |