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
This commit is contained in:
Petr Voborník
2012-02-23 13:54:07 +01:00
committed by Petr Vobornik
parent cf60e7e71e
commit 7da8d2f296
4 changed files with 30 additions and 5 deletions

View File

@@ -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"),
},
},
}