diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-01-10 17:28:27 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-03-13 15:59:44 +0100 |
commit | 870a5daf24c165069fe6f546bb3710f9b3880538 (patch) | |
tree | b21a65cc0291e15c0fde84c5b61d6ac024260750 /ipalib/plugins/internal.py | |
parent | 05f612e58a4954162dcaa724585869819ca77672 (diff) | |
download | freeipa-870a5daf24c165069fe6f546bb3710f9b3880538.tar.gz freeipa-870a5daf24c165069fe6f546bb3710f9b3880538.tar.xz freeipa-870a5daf24c165069fe6f546bb3710f9b3880538.zip |
webui: Datetime parsing and formatting
this patch implements:
- output_formatter in field. It should be used in par with formatter. Formatter serves for datasource->widget conversion, output_formatter for widget->datasource format conversion.
- datetime module which parses/format strings in subset of ISO 8601 and LDAP generalized time format to Date.
- utc formatter replaced with new datetime formatter
- datetime_validator introduced
- new datetime field, extension of text field, which by default uses datetime formatter and validator
Dojo was regenerated to include dojo/string module
https://fedorahosted.org/freeipa/ticket/4194
Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
Diffstat (limited to 'ipalib/plugins/internal.py')
-rw-r--r-- | ipalib/plugins/internal.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index 92a79840c..41732d670 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -695,6 +695,7 @@ class i18n_messages(Command): "undo_all": _("undo all"), "validation": { "error": _("Text does not match field pattern"), + "datetime": _("Must be an UTC date/time value (e.g., \"2014-01-20 17:58:01Z\")"), "decimal": _("Must be a decimal number"), "integer": _("Must be an integer"), "ip_address": _('Not a valid IP address'), |