summaryrefslogtreecommitdiffstats
path: root/ipalib/base.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/base.py
parentb31f259b1a24b5da8a8ed80d27b1f925220e8f24 (diff)
downloadfreeipa-338578d10ac0978a00948971a17a89dc95435954.zip
freeipa-338578d10ac0978a00948971a17a89dc95435954.tar.gz
freeipa-338578d10ac0978a00948971a17a89dc95435954.tar.xz
Allow one-character Param names
This is done explicitly to support the l/localityname attribute.
Diffstat (limited to 'ipalib/base.py')
-rw-r--r--ipalib/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/base.py b/ipalib/base.py
index 38b1e8f..bc2c6b4 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: