diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-09-05 12:39:28 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-09-30 10:42:06 +0200 |
commit | cbf1ad84f1a315cfe5671c08754c39adc3f90919 (patch) | |
tree | c59222607f53d780115664fed21293247fbe1825 /ipalib/plugins/idviews.py | |
parent | b4a13aeea8354d048828c711b4e1413bd4a0d82e (diff) | |
download | freeipa-cbf1ad84f1a315cfe5671c08754c39adc3f90919.tar.gz freeipa-cbf1ad84f1a315cfe5671c08754c39adc3f90919.tar.xz freeipa-cbf1ad84f1a315cfe5671c08754c39adc3f90919.zip |
idviews: Split the idoverride commands into iduseroverride and idgroupoverride
Part of: https://fedorahosted.org/freeipa/ticket/3979
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipalib/plugins/idviews.py')
-rw-r--r-- | ipalib/plugins/idviews.py | 76 |
1 files changed, 66 insertions, 10 deletions
diff --git a/ipalib/plugins/idviews.py b/ipalib/plugins/idviews.py index aa3c96259..4a9406934 100644 --- a/ipalib/plugins/idviews.py +++ b/ipalib/plugins/idviews.py @@ -495,8 +495,8 @@ class baseidoverride(LDAPObject): object_name = self.resolve_anchor_to_object_name(anchor) entry_attrs.single_value['ipaanchoruuid'] = object_name -@register() -class idoverride_add(LDAPCreate): + +class baseidoverride_add(LDAPCreate): __doc__ = _('Add a new ID override.') msg_summary = _('Added ID override "%(value)s"') @@ -509,14 +509,12 @@ class idoverride_add(LDAPCreate): return dn -@register() -class idoverride_del(LDAPDelete): +class baseidoverride_del(LDAPDelete): __doc__ = _('Delete an ID override.') msg_summary = _('Deleted ID override "%(value)s"') -@register() -class idoverride_mod(LDAPUpdate): +class baseidoverride_mod(LDAPUpdate): __doc__ = _('Modify an ID override.') msg_summary = _('Modified an ID override "%(value)s"') @@ -525,8 +523,7 @@ class idoverride_mod(LDAPUpdate): return dn -@register() -class idoverride_find(LDAPSearch): +class baseidoverride_find(LDAPSearch): __doc__ = _('Search for an ID override.') msg_summary = ngettext('%(count)d ID override matched', '%(count)d ID overrides matched', 0) @@ -537,8 +534,7 @@ class idoverride_find(LDAPSearch): return truncated -@register() -class idoverride_show(LDAPRetrieve): +class baseidoverride_show(LDAPRetrieve): __doc__ = _('Display information about an ID override.') def post_callback(self, ldap, dn, entry_attrs, *keys, **options): @@ -642,3 +638,63 @@ class idoverridegroup(baseidoverride): ) override_object = 'group' + + +@register() +class idoverrideuser_add(baseidoverride_add): + __doc__ = _('Add a new User ID override.') + msg_summary = _('Added User ID override "%(value)s"') + + +@register() +class idoverrideuser_del(baseidoverride_del): + __doc__ = _('Delete an User ID override.') + msg_summary = _('Deleted User ID override "%(value)s"') + + +@register() +class idoverrideuser_mod(baseidoverride_mod): + __doc__ = _('Modify an User ID override.') + msg_summary = _('Modified an User ID override "%(value)s"') + + +@register() +class idoverrideuser_find(baseidoverride_find): + __doc__ = _('Search for an User ID override.') + msg_summary = ngettext('%(count)d User ID override matched', + '%(count)d User ID overrides matched', 0) + + +@register() +class idoverrideuser_show(baseidoverride_show): + __doc__ = _('Display information about an User ID override.') + + +@register() +class idoverridegroup_add(baseidoverride_add): + __doc__ = _('Add a new Group ID override.') + msg_summary = _('Added Group ID override "%(value)s"') + + +@register() +class idoverridegroup_del(baseidoverride_del): + __doc__ = _('Delete an Group ID override.') + msg_summary = _('Deleted Group ID override "%(value)s"') + + +@register() +class idoverridegroup_mod(baseidoverride_mod): + __doc__ = _('Modify an Group ID override.') + msg_summary = _('Modified an Group ID override "%(value)s"') + + +@register() +class idoverridegroup_find(baseidoverride_find): + __doc__ = _('Search for an Group ID override.') + msg_summary = ngettext('%(count)d Group ID override matched', + '%(count)d Group ID overrides matched', 0) + + +@register() +class idoverridegroup_show(baseidoverride_show): + __doc__ = _('Display information about an Group ID override.') |