summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/internal.py
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-02-23 13:54:07 +0100
committerPetr Vobornik <pvoborni@redhat.com>2012-02-29 12:59:13 +0100
commit7da8d2f296ce10fc926bff01bc22cd3e0d7b7c46 (patch)
tree185980119e353de2591b63e0a83f79402c21253e /ipalib/plugins/internal.py
parentcf60e7e71e800bbbe5eb42039a375782af17c379 (diff)
downloadfreeipa-7da8d2f296ce10fc926bff01bc22cd3e0d7b7c46.tar.gz
freeipa-7da8d2f296ce10fc926bff01bc22cd3e0d7b7c46.tar.xz
freeipa-7da8d2f296ce10fc926bff01bc22cd3e0d7b7c46.zip
Added unsupported_validator
dnszone attributes idnsallowquery and idnsallowtransfer have valid but currently unsupported values: 'localhost' and 'localnets'. New validator was introduced for unsuported values. By using this validator user can see that the value is currently unsupported instead of showing 'invalid value' or passing the value to server and creating error there. https://fedorahosted.org/freeipa/ticket/2351
Diffstat (limited to 'ipalib/plugins/internal.py')
-rw-r--r--ipalib/plugins/internal.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py
index 2ee4316f8..c346b4428 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -574,6 +574,7 @@ class i18n_messages(Command):
"min_value": _("Minimum value is ${value}"),
"net_address": _("Not a valid network address"),
"required": _("Required field"),
+ "unsupported": _("Unsupported value"),
},
},
}