Glenn Linderman <v+pyt...@g.nevcal.com> added the comment:

I'd be willing to propose such a patch and tests, but I haven't a clue how, 
other than starting by reading the contributor document... I was putting off 
learning the process until hg conversion, not wanting to learn an old process 
for a few months :(  And I've never written an official Python test, or learned 
how to use the test modules, etc.  So that's a pretty steep curve for the 2 
days remaining.

Due to the way that browsers actually work, vs. how the standards are written, 
it seems necessary to add the optional  stream_encoding parameter.  The limit 
parameter Pierre is proposing is also a good check against improperly formed 
inputs.  So there are new, optional parameters to the FieldStorage constructor.

Without these fixes, though, cgi.py continues to be totally useless for file 
uploads, so not releasing this in 3.2 makes 3.2 continue to be useless as a 
basis for web applications.  I have no idea if there is a timeframe for 3.3, 
nor what it is.  I'm not sure if, or how many, web frameworks use cgi.py vs. 
replacing the functionality.  Seems at least some replace it, so they may not 
suffer in porting to 3.x (except internally, grappling with the same issues).

Happily, Pierre's latest patch needs only one more fix, per my 
(non-Python-standard) testing.  Between his testing in one environment using 
default code pages, and mine using UTF-8, the bases seem to be pretty well 
covered for testing... certainly more than the previous default tests.  I think 
you contributed some tests, I haven't tried them, but it seems Pierre has, as 
he has a patch for that also (which I haven't tried).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4953>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to