summaryrefslogtreecommitdiff
path: root/wsgitools/filters.py
AgeCommit message (Collapse)Author
2020-04-02avoid changing variable typesHelmut Grohne
The mypy type checker deals badly when a binding changes its type. To ease porting to mypy, avoid changing the type of variables. In some cases, variables can be eliminated. In other cases, they are renamed.
2020-03-09remove unnecessary pass statementsHelmut Grohne
Reported-by: pylint
2015-04-18Merge branch py3kHelmut Grohne
2014-01-06switch to new-style classes entirelyHelmut Grohne
There is no reason to use old-style classes beyond laziness.
2013-06-06fix RequestLogWSGIFilterTestHelmut Grohne
Clarify the type of the log file-like passed to RequestLogWSGIFilter.
2012-06-29fix more bytes related issues not covered by test.pyHelmut Grohne
* applications returned errors as str instead of bytes * filters documentation updated with bytes * various filters expecting str where bytes are passed * escape_string also needs to use bytes.isalnum instead of str.isalnum * middlewares injecting str where bytes are expected
2012-06-28first part of bytes conversionHelmut Grohne
Convert the request body data from str to bytes. This replaces all StringIOs with BytesIOs (removing backwards one more backwards compatibility). Also all character sequences involved in request bodies get a b"" prefix. The StaticContent application takes bytes instead of str (no difference for py2x). The GzipWSGIFilter needs a fixed as a truncate of a BytesIO does not rewind the stream position.
2012-06-28provide py3 style __next__ methodsHelmut Grohne
2012-06-28remove workarounds for missing next() and hashlibHelmut Grohne
2011-11-30documentation updateHelmut Grohne
* added a number of internal links (L{...}) * some fixes * some additions
2011-07-24add more assertions for types of passed parametersHelmut Grohne
2011-07-24filters.escape_string: do not consider \ printableHelmut Grohne
Otherwise escape_string is not reversible.
2010-08-31bugfix: io module from py2.6 provides incompatible StringIOHelmut Grohne
2010-06-04flush log file in RequestLogWSGIFilter by defaultHelmut Grohne
2010-05-29security fix: filters.RequestLogWSGIFilter must escape stringsHelmut Grohne
2009-06-24except ImportError in filters on importsHelmut Grohne
2009-06-24fixed RequestLogMiddleware to work at allHelmut Grohne
2009-06-23made RequestLogWSGIFilter define attrs in __init__Helmut Grohne
2009-03-29quite some changes for py3Helmut Grohne
These changes introduce some compatibility code. They don't make wsgitools usable with Python 3.0, but they also don't break compatibility with Python 2.5.
2009-01-31GzipWSGIFilter removes Content-length header if compressingHelmut Grohne
2008-10-14added epydoc markup to doc stringsHelmut Grohne
2008-09-24RequestLogWSGIFilter can also log QUERY_STRINGHelmut Grohne
2008-09-22improve commentsHelmut Grohne
2008-09-20epydoc syntax fixes in wsgitools.filtersHelmut Grohne
2008-09-19added ReusableWSGIInputFilterHelmut Grohne
2008-07-12fix some comments and epydocify themHelmut Grohne
2008-07-09added some module docstringsHelmut Grohne
2008-04-27clarified usage of EncodeWSGIFilterHelmut Grohne
2008-04-27added flush parameter to GzipWSGIFilterHelmut Grohne
2008-03-28fixed non-fatal bugsHelmut Grohne
2008-03-27epydoc updateHelmut Grohne
2008-02-28refactored docstrings for epydocHelmut Grohne
2008-02-28avoid builtin name filter as variable in wsgitools.filtersHelmut Grohne
2007-04-21added some assertionsHelmut Grohne
2007-04-21removed trailing spacesHelmut Grohne
2007-04-21added REMOTE_USER to RequestLogWSGIFilter loggingHelmut Grohne
2007-04-20fix appen_data invocation in WSGIFilterMiddlewareHelmut Grohne
2007-04-20export GzipWSGIFilter in wsgitools.filtersHelmut Grohne
2007-04-16added GzipWSGIFilterHelmut Grohne
2007-04-15added docstringsHelmut Grohne
2007-04-14initial treeHelmut Grohne