summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/hbacsvc.py
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-02-04 14:03:30 +0100
committerRob Crittenden <rcritten@redhat.com>2011-02-16 10:39:16 -0500
commite5d57d237b4f146faf2e5c27d4e9eb3359dc15b3 (patch)
treec6998fdaf83372e80e107da4d5dfc7246b552ce9 /ipalib/plugins/hbacsvc.py
parenta9dc175bc547996646c213661ca42906ffef83ab (diff)
downloadfreeipa-e5d57d237b4f146faf2e5c27d4e9eb3359dc15b3.tar.gz
freeipa-e5d57d237b4f146faf2e5c27d4e9eb3359dc15b3.tar.xz
freeipa-e5d57d237b4f146faf2e5c27d4e9eb3359dc15b3.zip
HBAC plugin inconsistent output
This patch adds a proper summary text to HBAC command which is then printed out in CLI. Now, HBAC plugin output is consistent with other plugins. https://fedorahosted.org/freeipa/ticket/596
Diffstat (limited to 'ipalib/plugins/hbacsvc.py')
-rw-r--r--ipalib/plugins/hbacsvc.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/ipalib/plugins/hbacsvc.py b/ipalib/plugins/hbacsvc.py
index 282f927ca..3fe9f0fb3 100644
--- a/ipalib/plugins/hbacsvc.py
+++ b/ipalib/plugins/hbacsvc.py
@@ -64,14 +64,14 @@ class hbacsvc(LDAPObject):
Str('cn',
cli_name='service',
label=_('Service name'),
- doc=_('HBAC Service'),
+ doc=_('HBAC service'),
primary_key=True,
normalizer=lambda value: value.lower(),
),
Str('description?',
cli_name='desc',
label=_('Description'),
- doc=_('Description of service'),
+ doc=_('HBAC service description'),
),
)
@@ -82,7 +82,7 @@ class hbacsvc_add(LDAPCreate):
"""
Add a new HBAC service.
"""
- msg_summary = _('Added service "%(value)s"')
+ msg_summary = _('Added HBAC service "%(value)s"')
api.register(hbacsvc_add)
@@ -91,7 +91,7 @@ class hbacsvc_del(LDAPDelete):
"""
Delete an existing HBAC service.
"""
- msg_summary = _('Deleted service "%(value)s"')
+ msg_summary = _('Deleted HBAC service "%(value)s"')
api.register(hbacsvc_del)
@@ -101,6 +101,8 @@ class hbacsvc_mod(LDAPUpdate):
Modify an HBAC service.
"""
+ msg_summary = _('Modified HBAC service "%(value)s"')
+
api.register(hbacsvc_mod)
@@ -109,6 +111,10 @@ class hbacsvc_find(LDAPSearch):
Search for HBAC services.
"""
+ msg_summary = ngettext(
+ '%(count)d HBAC service matched', '%(count)d HBAC services matched', 0
+ )
+
api.register(hbacsvc_find)