classification
Title: HTMLCalendar.formatyearpage not behaving as documented
Type: behavior Stage:
Components: Extension Modules Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: doerwalter, inefab
Priority: normal Keywords:

Created on 2007-08-28 16:07 by inefab, last changed 2007-08-28 16:38 by doerwalter. This issue is now closed.

Files
File name Uploaded Description Edit
cal.py inefab, 2007-08-28 16:07
2008cal.html inefab, 2007-08-28 16:07
Messages (3)
msg55376 - (view) Author: Fabien Teysseyre (inefab) Date: 2007-08-28 16:07
The function HTMLCalendar.formatyearpage in module calendar takes at
most 5 arguments (year, month, css, encoding) whereas documentation
(http://docs.python.org/lib/module-calendar.html) says it takes at most
6 (theyear, themonth[, width[, css[, encoding]]]). 

Also, the title tag in the head of the produced document with (year,
month, css) as arguments isn't properly closed ; the line is
<title>Calendar for 2008</title
when it should be
<title>Calendar for 2008</title>

This happend with linux (debian sid), with Python 2.5.1

Note: I haven't tested if the encoding did what it should 

Joined files :
 - HTMLyearbug.py: reproduces the bug
 - 2008cal.html: the output produced by this file
msg55377 - (view) Author: Fabien Teysseyre (inefab) Date: 2007-08-28 16:07
uploaded 2008cal.html
msg55378 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2007-08-28 16:38
Fixed in r57620
History
Date User Action Args
2007-08-28 16:38:50doerwaltersetstatus: open -> closed
resolution: fixed
messages: + msg55378
nosy: + doerwalter
2007-08-28 16:07:43inefabsetfiles: + 2008cal.html
messages: + msg55377
2007-08-28 16:07:04inefabcreate