Quantcast

[issue2550932] html_calendar produces templating errors for bad date strings

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[issue2550932] html_calendar produces templating errors for bad date strings

John Rouillard

New submission from Joseph Myers:

Suppose you have a Date input field, and someone first enters a date in
that field in a format not recognized by Roundup, then uses the calendar
widget (_generic.calendar.html) to edit the date.

This uses html_calendar, which does

    curr_date = date.Date(date_str) # to highlight

which produces a Templating Error email to the admin with a backtrace
when it cannot parse the date.

Whatever is done with a badly formatted date - a message to the user
about valid date formats would seem sensible - giving a Templating Error
like that isn't user-friendly or the right thing to do.

----------
components: Web interface
messages: 5921
nosy: joseph_myers
severity: normal
status: new
title: html_calendar produces templating errors for bad date strings
type: behavior
versions: 1.5

________________________________________________
Roundup tracker <[hidden email]>
<http://issues.roundup-tracker.org/issue2550932>
________________________________________________

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Roundup-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/roundup-devel
Loading...