Add Object.label class attribute, enable in webUI

This commit is contained in:
Jason Gerard DeRose
2010-02-08 05:03:28 -07:00
committed by Rob Crittenden
parent 338578d10a
commit 069763c5c6
17 changed files with 88 additions and 7 deletions

View File

@@ -23,6 +23,7 @@ Netgroups
from ipalib import api, errors
from ipalib.plugins.baseldap import *
from ipalib import _, ngettext
class netgroup(LDAPObject):
@@ -51,6 +52,8 @@ class netgroup(LDAPObject):
'externalhost': [],
}
label = _('Net Groups')
takes_params = (
Str('cn',
cli_name='name',
@@ -200,4 +203,3 @@ class netgroup_remove_member(LDAPRemoveMember):
return (completed + completed_external, dn)
api.register(netgroup_remove_member)