From 338578d10ac0978a00948971a17a89dc95435954 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 12 Feb 2010 11:01:23 -0500 Subject: Allow one-character Param names This is done explicitly to support the l/localityname attribute. --- ipalib/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/constants.py') diff --git a/ipalib/constants.py b/ipalib/constants.py index 0ace2a28..79ddbca8 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' -- cgit