[Zope3-Users] [Zope-dev] Problems with schema Date field - year is truncated
Hermann Himmelbauer
dusty at qwer.tk
Thu Aug 28 11:14:17 EDT 2008
Am Donnerstag 28 August 2008 11:41:54 schrieb Markus Kemmerling:
> Hi Hermann,
>
> The z3c.form.converter.CalendarDataConverter, on which the
> DateDataConverter is based, explicitely sets the date format to
> 'short'. Overriding the latter with a 'length' attribute set to
> 'medium' will handle german dates as "dd.MM.YYYY".
Ah, yes, many thanks, that did the trick!
Nevertheless, the validator does not check if someone enters a string that is
too long, e.g. someone can enter "19.02.1999892839", whereas the trailing
characters are truncated. Is there a way to prevent this, for instance by
throwing an error? Or is there any reason for this?
Best Regards,
Hermann
--
hermann at qwer.tk
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
More information about the Zope3-users
mailing list