|
|
590d18 |
From 1dfdb32cbd73a3b1144645c0208fee88b3530172 Mon Sep 17 00:00:00 2001
|
|
|
590d18 |
From: Jan Cholasta <jcholast@redhat.com>
|
|
|
590d18 |
Date: Mon, 17 Aug 2015 09:39:21 +0200
|
|
|
590d18 |
Subject: [PATCH] baseldap: Allow overriding member param label in
|
|
|
590d18 |
LDAPModMember
|
|
|
590d18 |
|
|
|
590d18 |
https://fedorahosted.org/freeipa/ticket/5214
|
|
|
590d18 |
|
|
|
590d18 |
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
|
|
|
590d18 |
---
|
|
|
590d18 |
ipalib/plugins/baseldap.py | 5 +++--
|
|
|
590d18 |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
590d18 |
|
|
|
590d18 |
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
|
|
|
590d18 |
index 36a5d5f4918828a97b0b30d4613819f777722de8..31f38946afcbb51638bcab68a6e74ec309eba0e4 100644
|
|
|
590d18 |
--- a/ipalib/plugins/baseldap.py
|
|
|
590d18 |
+++ b/ipalib/plugins/baseldap.py
|
|
|
590d18 |
@@ -1652,6 +1652,7 @@ class LDAPModMember(LDAPQuery):
|
|
|
590d18 |
"""
|
|
|
590d18 |
member_attributes = ['member']
|
|
|
590d18 |
member_param_doc = _('%s')
|
|
|
590d18 |
+ member_param_label = _('member %s')
|
|
|
590d18 |
member_count_out = ('%i member processed.', '%i members processed.')
|
|
|
590d18 |
|
|
|
590d18 |
def get_options(self):
|
|
|
590d18 |
@@ -1662,9 +1663,9 @@ class LDAPModMember(LDAPQuery):
|
|
|
590d18 |
ldap_obj = self.api.Object[ldap_obj_name]
|
|
|
590d18 |
name = to_cli(ldap_obj_name)
|
|
|
590d18 |
doc = self.member_param_doc % ldap_obj.object_name_plural
|
|
|
590d18 |
+ label = self.member_param_label % ldap_obj.object_name
|
|
|
590d18 |
yield Str('%s*' % name, cli_name='%ss' % name, doc=doc,
|
|
|
590d18 |
- label=_('member %s') % ldap_obj.object_name,
|
|
|
590d18 |
- csv=True, alwaysask=True)
|
|
|
590d18 |
+ label=label, csv=True, alwaysask=True)
|
|
|
590d18 |
|
|
|
590d18 |
def get_member_dns(self, **options):
|
|
|
590d18 |
dns = {}
|
|
|
590d18 |
--
|
|
|
590d18 |
2.4.3
|
|
|
590d18 |
|