summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix GHA: ubuntu-latest no longer contains Python 3.5 and 3.6HEADmasterMichael Howitz2022-12-155-9/+14
|
* Fix tox lint run + isort imports.Michael Howitz2022-08-0548-171/+283
|
* Fix badge.Michael Howitz2022-03-151-2/+2
|
* Back to development: 6.1.1Michael Howitz2022-03-152-1/+7
|
* Preparing release 6.1.06.1.0Michael Howitz2022-03-152-2/+2
|
* Add support for Python 3.10.Michael Howitz2022-03-159-16/+47
|
* Merge pull request #66 from cjwatson/revamp-decodingColin Watson2022-03-093-30/+84
|\ | | | | Revamp handling of query string and form decoding
| * Revamp handling of query string and form decodingColin Watson2021-07-273-30/+84
|/ | | | | | | | | | | | | | | | | | | The previous approach was to tell underlying libraries to decode inputs using ISO-8859-1, then re-encode as ISO-8859-1 and decode using an encoding deduced from the `Accept-Charset` request header. However, this didn't make much conceptual sense (since `Accept-Charset` defines the preferred *response* encoding), and it made it impossible to handle cases where the encoding was specified as something other than ISO-8859-1 in the request (which might even be on a per-item basis, in the case of `multipart/form-data` input). We now only perform the dubious `Accept-Charset` guessing for query strings; in other cases we let `multipart` determine the encoding, defaulting to UTF-8 as per the HTML specification. For cases where applications need to specify some other default form encoding, `BrowserRequest` subclasses can now set `default_form_charset`. Fixes #65.
* Back to development: 6.0.3Adam Groszer2021-06-072-1/+7
|
* Preparing release 6.0.26.0.2Adam Groszer2021-06-072-2/+2
|
* Merge pull request #64 from Shoobx/masterJustas Sadzevičius2021-06-072-0/+7
|\ | | | | Handle empty Content-Type environment variable gracefully
| * Handle empty Content-Type environment variable gracefullyJustas Sadzevicius2021-06-072-0/+7
|/
* Merge pull request #63 from cjwatson/traceback-reference-cycleColin Watson2021-05-192-1/+2
|\ | | | | Avoid traceback reference cycle in publish
| * Avoid traceback reference cycle in publishColin Watson2021-05-192-1/+2
|/ | | | | | | ``sys.exc_info()`` called from ``publish`` returns a tuple containing the exception's traceback object, which has a reference to the ``publish`` frame. Storing that in a local variable creates a reference cycle. Clear that variable in a ``finally`` block to avoid this.
* Fix generating documentation.Michael Howitz2021-05-195-10/+25
| | | | Use `Sphinx < 4` to prevent problems repoze.sphinx.autointerface.
* Back to development: 6.0.2Jason Madden2021-04-152-1/+7
|
* Preparing release 6.0.16.0.1Jason Madden2021-04-152-2/+2
|
* Merge pull request #61 from zopefoundation/zope-interface-5.4Jason Madden2021-03-263-82/+93
|\ | | | | Fix test compatibility with zope.interface 5.4
| * Fix test compatibility with zope.interface 5.4zope-interface-5.4Jason Madden2021-03-253-82/+93
|/ | | | | | Explicitly use the repr of interfaces so we can work with any version of zope.interface. See https://github.com/zopefoundation/zope.interface/pull/237#issuecomment-807188771
* Update to changed naming in meta/config (#59)Michael Howitz2021-01-211-2/+2
|
* Back to development: 6.0.1Michael Howitz2021-01-202-1/+7
|
* Preparing release 6.0.06.0.0Michael Howitz2021-01-202-2/+2
|
* Merge pull request #58 from zopefoundation/config-with-pure-pythonMichael Howitz2021-01-2053-865/+895
|\ | | | | Support Python 3.9, Lint the code, Use GHA as CI system
| * More fixes requested in code review.config-with-pure-pythonMichael Howitz2021-01-182-55/+53
| |
| * Update src/zope/publisher/browser.pyMichael Howitz2021-01-181-2/+0
| | | | | | Co-authored-by: Marius Gedminas <marius@gedmin.as>
| * Update src/zope/publisher/browser.pyMichael Howitz2021-01-181-1/+2
| | | | | | Co-authored-by: Marius Gedminas <marius@gedmin.as>
| * Update src/zope/publisher/tests/test_http.pyMichael Howitz2021-01-181-2/+2
| | | | | | Co-authored-by: Marius Gedminas <marius@gedmin.as>
| * Configuring for pure-pythonMichael Howitz2021-01-182-0/+8
| |
| * Implement some of the fixes requested in code review.Michael Howitz2021-01-1818-64/+18
| |
| * Update src/zope/publisher/zcml.pyMichael Howitz2021-01-181-1/+1
| | | | | | Co-authored-by: Marius Gedminas <marius@gedmin.as>
| * Configuring for pure-pythonMichael Howitz2021-01-182-4/+6
| |
| * Configuring for pure-pythonMichael Howitz2020-12-181-3/+3
| |
| * Configuring for pure-pythonMichael Howitz2020-12-182-3/+3
| |
| * Lint the code and add support for Python 3.9.Michael Howitz2020-12-1843-510/+647
| |
| * Configuring for pure-pythonMichael Howitz2020-12-1810-287/+219
|/
* Merge pull request #55 from cjwatson/multipart-parserColin Watson2020-11-204-112/+181
|\ | | | | Port form data parsing to multipart
| * Fix handling of non-ASCII form-data filenamesColin Watson2020-09-052-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC 7578 section 4.2 says: Some commonly deployed systems use multipart/form-data with file names directly encoded including octets outside the US-ASCII range. The encoding used for the file names is typically UTF-8, although HTML forms will use the charset associated with the form. Honour this properly. This was caught by the Launchpad test suite when testing an upgrade to zope.publisher 6.0.0.
| * Fix handling of duplicate form-data field namesColin Watson2020-09-052-2/+23
| | | | | | | | | | | | | | | | RFC 7578 section 5.2 says "Form parts with identical field names MUST NOT be coalesced". This was caught by the Launchpad test suite when testing an upgrade to zope.publisher 6.0.0.
| * Bump to 6.0.0 in setup.py tooColin Watson2020-09-041-1/+1
| |
| * Fix the last few ResourceWarningsColin Watson2020-09-042-2/+10
| | | | | | | | multipart 0.2.2 fixed most of these; this tidies up the last few.
| * Bump to 6.0.0Colin Watson2020-08-241-1/+1
| | | | | | | | | | Dropping `FileUpload.name` _probably_ doesn't break anything, but it's clearly a possibility.
| * Drop FileUpload.nameColin Watson2020-08-213-22/+12
| | | | | | | | | | | | Preserving it with multipart required monkey-patching, and at least my implementation of that wasn't thread-safe. It can't be used in portable code and doesn't seem to have much use.
| * Revert "Add BBB import for ZopeFieldStorage"Colin Watson2020-08-211-4/+0
| | | | | | | | | | | | This reverts commit 21721e875ed23ee307062475acd92e5bde351513. This would result in a ZopeFieldStorage with changed behaviour, which we don't want.
| * Add BBB import for ZopeFieldStorageColin Watson2020-08-201-0/+4
| |
| * Clarify commentColin Watson2020-08-201-2/+3
| |
| * Port form data parsing to multipartColin Watson2020-08-043-104/+100
| | | | | | | | | | | | | | This currently adds ResourceWarnings on Python 3; that will be fixed when https://github.com/defnull/multipart/pull/21 lands. Fixes #39.
* | Merge pull request #56 from zopefoundation/all-repos_autofix_all-repos-sedJens Vagelpohl2020-10-281-2/+2
|\ \ | |/ |/| Update badge URL for Travis
| * Update badge URL for Travisall-repos_autofix_all-repos-sedJürgen Gmach2020-10-281-2/+2
|/ | | | Committed via https://github.com/asottile/all-repos
* Back to development: 5.2.2Michael Howitz2020-06-152-1/+7
|
* Preparing release 5.2.15.2.1Michael Howitz2020-06-152-2/+2
|