summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/dns.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2010-02-08 05:03:28 -0700
committerRob Crittenden <rcritten@redhat.com>2010-02-12 17:07:37 -0500
commit069763c5c616221fd0bcea813cad93ae3f7c072d (patch)
tree3c7944836ca68119671482e3ee2f9365032fa640 /ipalib/plugins/dns.py
parent338578d10ac0978a00948971a17a89dc95435954 (diff)
downloadfreeipa-069763c5c616221fd0bcea813cad93ae3f7c072d.tar.gz
freeipa-069763c5c616221fd0bcea813cad93ae3f7c072d.tar.xz
freeipa-069763c5c616221fd0bcea813cad93ae3f7c072d.zip
Add Object.label class attribute, enable in webUI
Diffstat (limited to 'ipalib/plugins/dns.py')
-rw-r--r--ipalib/plugins/dns.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index b31ded665..49d073e8c 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -66,6 +66,7 @@ import time
from ipalib import api, crud, errors, output
from ipalib import Object, Command
from ipalib import Flag, Int, Str, StrEnum
+from ipalib import _, ngettext
# parent DN
_zone_container_dn = api.env.container_dns
@@ -110,6 +111,8 @@ def _get_record_dn(ldap, zone, idnsname):
class dns(Object):
"""DNS zone/SOA record object."""
+ label = _('DNS')
+
takes_params = (
Str('idnsname',
cli_name='name',
@@ -857,4 +860,3 @@ class dns_show_rr(Command):
textui.print_entry(entry_attrs)
api.register(dns_show_rr)
-