mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Allow one-character Param names
This is done explicitly to support the l/localityname attribute.
This commit is contained in:
committed by
Jason Gerard DeRose
parent
b31f259b1a
commit
338578d10a
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user