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
2011-07-05 09:34:21 -05:00
committed by Adam Young
parent cd237e5f54
commit 6083df1b02
10 changed files with 79 additions and 85 deletions

View File

@@ -52,8 +52,8 @@ class hbacsvc(LDAPObject):
HBAC Service object.
"""
container_dn = api.env.container_hbacservice
object_name = 'hbacsvc'
object_name_plural = 'hbacsvcs'
object_name = 'HBAC service'
object_name_plural = 'HBAC services'
object_class = [ 'ipaobject', 'ipahbacservice' ]
default_attributes = ['cn', 'description', 'memberindirect',]
uuid_attribute = 'ipauniqueid'