diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-02-12 16:34:21 -0500 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2010-02-15 13:10:11 -0700 |
commit | 58746226d4b36bc40de91d4d1dd283e9faaff639 (patch) | |
tree | 11c4cd42b0285ff366c68274495cd1e9ee7fa7da /ipalib/plugins/rolegroup.py | |
parent | 99dcf9d4f97ac8bff112d6ccc36bb5b894fa5bcd (diff) | |
download | freeipa.git-58746226d4b36bc40de91d4d1dd283e9faaff639.tar.gz freeipa.git-58746226d4b36bc40de91d4d1dd283e9faaff639.tar.xz freeipa.git-58746226d4b36bc40de91d4d1dd283e9faaff639.zip |
Use the Output tuple to determine the order of output
The attributes displayed is now dependant upon their definition in
a Param. This enhances that, giving some level of control over how
the result is displayed to the user.
This also fixes displaying group membership, including failures of
adding/removing entries.
All tests pass now though there is still one problem. We need to
return the dn as well. Once that is fixed we just need to comment
out all the dn entries in the tests and they should once again
pass.
Diffstat (limited to 'ipalib/plugins/rolegroup.py')
-rw-r--r-- | ipalib/plugins/rolegroup.py | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/ipalib/plugins/rolegroup.py b/ipalib/plugins/rolegroup.py index ea89aa51..bf21e23c 100644 --- a/ipalib/plugins/rolegroup.py +++ b/ipalib/plugins/rolegroup.py @@ -36,11 +36,11 @@ class rolegroup(LDAPObject): default_attributes = ['cn', 'description', 'member', 'memberof'] attribute_names = { 'cn': 'name', - 'member user': 'member users', - 'member group': 'member groups', - 'member host': 'member hosts', - 'member hostgroup': 'member hostgroups', - 'memberof taskgroup': 'member of taskgroup', + 'member_user': 'member users', + 'member_group': 'member groups', + 'member_host': 'member hosts', + 'member_hostgroup': 'member hostgroups', + 'memberof_taskgroup': 'member of taskgroup', } attribute_members = { 'member': ['user', 'group', 'host', 'hostgroup'], @@ -62,6 +62,18 @@ class rolegroup(LDAPObject): label='Description', doc='A description of this rolegroup', ), + Str('member_group?', + label='Member Groups', + flags=['no_create', 'no_update', 'no_search'], + ), + Str('member_user?', + label='Member Users', + flags=['no_create', 'no_update', 'no_search'], + ), + Str('memberof_taskgroup?', + label='Member of Task Groups', + flags=['no_create', 'no_update', 'no_search'], + ), ) api.register(rolegroup) |