Pushed under three-liner rule. ;)

--
Endi S. Dewata
From ca0fbd7329368bb3b30bcbfc772e04cda2544f88 Mon Sep 17 00:00:00 2001
From: Endi S. Dewata <edew...@redhat.com>
Date: Fri, 19 Nov 2010 18:30:03 -0600
Subject: [PATCH] Multivalued email address

---
 install/static/test/data/ipa_init.json      |    2 +-
 install/static/test/data/json_metadata.json |    2 +-
 ipalib/plugins/user.py                      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/install/static/test/data/ipa_init.json b/install/static/test/data/ipa_init.json
index a38cd976760499257e3dd27f533aebff5f9b3b8f..84fc02cc0218756cd3c69a2bc47155dfcaa058a9 100644
--- a/install/static/test/data/ipa_init.json
+++ b/install/static/test/data/ipa_init.json
@@ -3876,7 +3876,7 @@
                                 "length": null,
                                 "maxlength": null,
                                 "minlength": null,
-                                "multivalue": false,
+                                "multivalue": true,
                                 "name": "mail",
                                 "pattern": null,
                                 "pattern_errmsg": null,
diff --git a/install/static/test/data/json_metadata.json b/install/static/test/data/json_metadata.json
index 372b9de5477fd634974eac18b387ec65af403b77..4ebe489cff02478f09b8b86ec78ea9ae2f9c4e22 100644
--- a/install/static/test/data/json_metadata.json
+++ b/install/static/test/data/json_metadata.json
@@ -3872,7 +3872,7 @@
                         "length": null,
                         "maxlength": null,
                         "minlength": null,
-                        "multivalue": false,
+                        "multivalue": true,
                         "name": "mail",
                         "pattern": null,
                         "pattern_errmsg": null,
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py
index 405543bbd71465edac87edc14350a20e4cdf30c2..b34ba99f971e21af97ca8f2e56204e3b64a6847c 100644
--- a/ipalib/plugins/user.py
+++ b/ipalib/plugins/user.py
@@ -116,7 +116,7 @@ class user(LDAPObject):
             default_from=lambda uid: '%...@%s' % (uid, api.env.realm),
             autofill=True,
         ),
-        Str('mail?',
+        Str('mail*',
             cli_name='email',
             label=_('Email address'),
         ),
-- 
1.6.6.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to