Fixed object_name usage.

The object_name attribute was used as both an identifier and a
label which sometimes require different values (e.g. hbacrule
vs. HBAC rule). The code that uses object_name as an identifier
has been changed to use the 'name' attribute instead. The values
of the object_name attribute have been fixed to become proper
labels.

Ticket #1217
This commit is contained in:
Endi S. Dewata authored and Adam Young committed 2011-07-05 16:19:10 -04:00
1 parent cd237e5f54
commit 6083df1b02
10 files changed
+79 -85

No files matched your search

+2 -2
View File
@@ -45,8 +45,8 @@ class sudorule(LDAPObject):
Sudo Rule management
"""
container_dn = api.env.container_sudorule
object_name = 'Sudo Rule'
object_name_plural = 'Sudo Rules'
object_name = 'sudo rule'
object_name_plural = 'sudo rules'
object_class = ['ipaassociation', 'ipasudorule']
default_attributes = [
'cn', 'ipaenabledflag',