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/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/base.py') diff --git a/ipalib/base.py b/ipalib/base.py index 38b1e8f32..bc2c6b45a 100644 --- a/ipalib/base.py +++ b/ipalib/base.py @@ -216,7 +216,7 @@ def check_name(name): >>> check_name('MyName') Traceback (most recent call last): ... - ValueError: name must match '^[a-z][_a-z0-9]*[a-z0-9]$'; got 'MyName' + ValueError: name must match '^[a-z][_a-z0-9]*[a-z0-9]$|^[a-z]$'; got 'MyName' Also, this function will raise a ``TypeError`` if ``name`` is not an ``str`` instance. For example: -- cgit