[issue11567] http.server error message format

2011-03-20 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Well, it is possible to disagree with the W3C on that particular point :)

http://hixie.ch/advocacy/xhtml
http://www.xml.com/pub/a/2004/07/21/dive.html
http://www.cs.tut.fi/~jkorpela/html/empty.html
http://diveintomark.org/archives/2004/01/14/thought_experiment

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-19 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I agree with Ezio.  I noticed the commit but didn’t comment: I wanted to bring 
up the subject of HTML-producing modules in the stdlib and advocate use of 
HTML 5 (for real, pragmatic reasons, not because of a mode effect—I’ll dig up a 
number of links that explain the problems with pseudo-XHTML).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-19 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

Ezio Melotti wrote:

 This is just nitpicking, but serving XHTML as text/html is wrong.  

While, I thought this statement is correct and expected the Internet
media-type should be something else (application/xhtml+xml), but as
per w3c, it is not wrong to serve XHTML as text/html (RFC 3236)

Also, have a look at the example given at:

http://www.w3.org/QA/2002/04/Web-Quality

Validating the present output using the validator will give a green
signal too.

Also  XHTML is not necessary here, so I would just use an HTML 4.01
strict doctype (and remove the xmlns).

Agree to this. Although at the moment it does not cause any harm, it
is a good to be plain HTML when it is a http server.

Éric - HTML5 is not a standard yet and when it becomes one (or much
earlier, when it becomes a de-facto standard), then html producing
stdlib modules should move to it. I don't think we should move faster
than browsers or html client applications.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-19 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 135a0d7bc4db by Senthil Kumaran in branch '3.1':
Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
http://hg.python.org/cpython/rev/135a0d7bc4db

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-17 Thread Gennadiy Zlobin

Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:

Hi guys, this is my first patch for the Python interpreter.
Hope it is ok, but if it is not, be sure to comment and I'll fix it ASAP

--
keywords: +patch
Added file: http://bugs.python.org/file21262/11567.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-17 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset db4967095f10 by Senthil Kumaran in branch '3.2':
Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy 
Zlobin.
http://hg.python.org/cpython/rev/db4967095f10

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-17 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

Fixed in 3.3 and 3.2.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-17 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

This is just nitpicking, but serving XHTML as text/html is wrong.  Also  XHTML 
is not necessary here, so I would just use an HTML 4.01 strict doctype (and 
remove the xmlns).

--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-16 Thread gennad

gennad gennad.zlo...@gmail.com added the comment:

I take this issue

--
nosy: +gennad

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-16 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

go ahead. please submit a patch.

--
assignee:  - orsenthil
nosy: +orsenthil
type: performance - behavior
versions: +Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11567] http.server error message format

2011-03-15 Thread Ivan Radigales Creus

New submission from Ivan Radigales Creus ivan...@gmail.com:

The global variable DEFAULT_ERROR_MESSAGE on the module http.server is set to a 
non W3C standard value.

It would be better to use something like:

DEFAULT_ERROR_MESSAGE = \
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type 
content=text/html;charset=utf-8 /
titleError response/title
/head
body
h1Error response/h1
pError code %(code)d./p
pMessage: %(message)s./p
pError code explanation: %(code)s = %(explain)s./p
/body
/html


That follows the W3C standards and validates successful on the 
http://validator.w3.org

Thanks!

--
components: Library (Lib)
messages: 131086
nosy: Ivan.Radigales.Creus
priority: normal
severity: normal
status: open
title: http.server error message format
type: performance
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com