From 069763c5c616221fd0bcea813cad93ae3f7c072d Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Mon, 8 Feb 2010 05:03:28 -0700 Subject: Add Object.label class attribute, enable in webUI --- ipalib/plugins/dns.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipalib/plugins/dns.py') diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index b31ded66..49d073e8 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) - -- cgit