Error entering invalid Birthdate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SchoolTool |
Triaged
|
Medium
|
Douglas Cerna |
Bug Description
The following error occurs after a data entry clerk manually entered "0099" for the birthdate year of a student instead of "1999". When trying to bring the student up to correct the mistake... the following error occurs and you can not edit the student details. Clerk is forced to manually type the date as the year drop down does not appear to go back any farther than 2003.
An internal server error has occurred. This most likely means that you have found a bug in SchoolTool. Please report it on the issue tracker.
Exception
ValueError: year=99 is before 1900; the datetime strftime() methods require year >= 1900
Traceback
File "/usr/lib/
result = publication.
File "/usr/lib/
return mapply(ob, request.
File "/usr/lib/
return debug_call(obj, args)
Extra information: <schooltool.
File "/usr/lib/
return obj(*args)
File "/usr/lib/
self.update()
File "/usr/lib/
form.
File "/usr/lib/
super(Form, self).update()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
widget.update()
File "/usr/lib/
super(TextWidget, self).update()
File "/usr/lib/
super(
File "/usr/lib/
self.value = converter.
File "/usr/lib/
return value.strftime(
Changed in schooltool: | |
assignee: | nobody → Alan Elkner (aelkner) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in schooltool: | |
assignee: | Alan Elkner (aelkner) → Douglas Cerna (replaceafill) |
importance: | High → Medium |
Rena, are you using version 2.1? AFAIK, this was already reported/ fixed/released here:
https:/ /bugs.launchpad .net/schooltool /+bug/960367
Regarding the year dropdown behaviour in the calendar widget, I admit it's kind of strange. By default you should see the previous 20 years and the next 10 years. If you want to set 1975 for example, you first need to click the dropdown, select 1992 (which makes the dropdown options to dissappear), click the dropdown again and then you have access to 1975.