diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-11 22:12:23 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-11 22:12:23 +0000 |
commit | 902614a76297f6c3e3d329df6a6a5010765a37f5 (patch) | |
tree | 7209dbe5dc640b7b8439132d7d76daefd3f91396 /ipalib/public.py | |
parent | afdbc42b2e721012daf7020430353c0686fcc5c3 (diff) | |
download | freeipa.git-902614a76297f6c3e3d329df6a6a5010765a37f5.tar.gz freeipa.git-902614a76297f6c3e3d329df6a6a5010765a37f5.tar.xz freeipa.git-902614a76297f6c3e3d329df6a6a5010765a37f5.zip |
113: Fixed regex used in attr.__init__(); added unit tests for mthd.get_options()
Diffstat (limited to 'ipalib/public.py')
-rw-r--r-- | ipalib/public.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/public.py b/ipalib/public.py index 95ba7554..57e9c002 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -254,7 +254,7 @@ class attr(plugable.Plugin): __obj = None def __init__(self): - m = re.match('^([a-z]+)_([a-z]+)$', self.__class__.__name__) + m = re.match('^([a-z][a-z0-9]+)_([a-z][a-z0-9]+)$', self.__class__.__name__) assert m self.__obj_name = m.group(1) self.__attr_name = m.group(2) |