diff options
author | Rob Crittenden <rcritten@redhat.com> | 2007-11-09 13:58:36 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2007-11-09 13:58:36 -0500 |
commit | 705d68ddcb3dfb98e7ce9a0ef4c9397977ab3f53 (patch) | |
tree | e7e51d7aee761902fbd022709c18a6b733f17876 /ipa-python | |
parent | 6f03dde1ab92f391f413f8cb0beded72a279d230 (diff) | |
download | freeipa-705d68ddcb3dfb98e7ce9a0ef4c9397977ab3f53.tar.gz freeipa-705d68ddcb3dfb98e7ce9a0ef4c9397977ab3f53.tar.xz freeipa-705d68ddcb3dfb98e7ce9a0ef4c9397977ab3f53.zip |
Require uniqueness in the name/comment field of delegations
Fix error reporting in the UI to include the detailed message
Sort delegations by name when displaying them
Update the name field from "Name" to "Delegation Name"
Diffstat (limited to 'ipa-python')
-rw-r--r-- | ipa-python/aci.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ipa-python/aci.py b/ipa-python/aci.py index 60e19075a..d35da8dab 100644 --- a/ipa-python/aci.py +++ b/ipa-python/aci.py @@ -37,6 +37,16 @@ class ACI: if acistr is not None: self.parse_acistr(acistr) + def __getitem__(self,key): + """Fake getting attributes by key for sorting""" + if key == 0: + return self.name + if key == 1: + return self.source_group + if key == 2: + return self.dest_group + raise TypeError("Unknown key value %s" % key) + def export_to_string(self): """Converts the ACI to a string suitable for an LDAP aci attribute.""" attrs_str = ' || '.join(self.attrs) |