summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-12-15 13:36:14 -0700
committerJason Gerard DeRose <jderose@redhat.com>2009-12-16 15:54:55 -0700
commit8ae0f9c8aadeacb16142198b65e368d2aa7926f4 (patch)
treeed2500b42ae60d1cd953acdc5454278328ccd2e1 /ipalib/plugins
parentc334ec45849100b454bf775ba2ecaa05c6106546 (diff)
downloadfreeipa-8ae0f9c8aadeacb16142198b65e368d2aa7926f4.tar.gz
freeipa-8ae0f9c8aadeacb16142198b65e368d2aa7926f4.tar.xz
freeipa-8ae0f9c8aadeacb16142198b65e368d2aa7926f4.zip
host and hostgroup summary messages, declarative tests; fix tests for 'dn'
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/hostgroup.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/ipalib/plugins/hostgroup.py b/ipalib/plugins/hostgroup.py
index 1b2aa7d37..2376b4371 100644
--- a/ipalib/plugins/hostgroup.py
+++ b/ipalib/plugins/hostgroup.py
@@ -21,9 +21,8 @@
Groups of hosts.
"""
-from ipalib import api
-from ipalib import Int
from ipalib.plugins.baseldap import *
+from ipalib import api, Int, _, ngettext
class hostgroup(LDAPObject):
@@ -70,6 +69,8 @@ class hostgroup_add(LDAPCreate):
Create new hostgroup.
"""
+ msg_summary = _('Added hostgroup "%(value)s"')
+
api.register(hostgroup_add)
@@ -78,6 +79,8 @@ class hostgroup_del(LDAPDelete):
Delete hostgroup.
"""
+ msg_summary = _('Deleted hostgroup "%(value)s"')
+
api.register(hostgroup_del)
@@ -86,6 +89,8 @@ class hostgroup_mod(LDAPUpdate):
Modify hostgroup.
"""
+ msg_summary = _('Modified hostgroup "%(value)s"')
+
api.register(hostgroup_mod)
@@ -94,6 +99,10 @@ class hostgroup_find(LDAPSearch):
Search for hostgroups.
"""
+ msg_summary = ngettext(
+ '%(count)d hostgroup matched', '%(count)d hostgroups matched'
+ )
+
api.register(hostgroup_find)
@@ -119,4 +128,3 @@ class hostgroup_remove_member(LDAPRemoveMember):
"""
api.register(hostgroup_remove_member)
-