https://fedorahosted.org/freeipa/ticket/245
>From fc18a26b2af2addd21edad6066fc3c1faa9583e5 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <[email protected]>
Date: Mon, 15 Nov 2010 15:37:40 +0100
Subject: [PATCH] Improve the documentation of setattr/addattr

https://fedorahosted.org/freeipa/ticket/245
---
 ipalib/plugins/baseldap.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index 6bf9b3b..d3c5604 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -279,12 +279,13 @@ class LDAPObject(Object):
 _attr_options = (
     Str('addattr*', validate_add_attribute,
         cli_name='addattr',
-        doc=_('Add an attribute/value pair. Format is attr=value'),
+        doc=_('Add an attribute/value pair. Format is attr=value. The 
attribute must be part of the schema.'),
         exclude='webui',
     ),
     Str('setattr*', validate_set_attribute,
         cli_name='setattr',
-        doc=_('Set an attribute to an name/value pair. Format is attr=value'),
+        doc=_("""Set an attribute to an name/value pair. Format is attr=value.
+For multivalued attributes, the command replaces the values already 
present."""),
         exclude='webui',
     ),
 )
-- 
1.7.3.2

_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to