[Checkins] [zopefoundation/zope.testbrowser] 5dd7be: Invalidate caches in Browser.goBack()
Colin Watson
noreply at github.com
Sun Nov 10 13:29:49 CET 2019
Branch: refs/heads/master
Home: https://github.com/zopefoundation/zope.testbrowser
Commit: 5dd7be0ff1a59c82a9343eb9bfecab7df566509b
https://github.com/zopefoundation/zope.testbrowser/commit/5dd7be0ff1a59c82a9343eb9bfecab7df566509b
Author: Colin Watson <cjwatson at debian.org>
Date: 2019-11-10 (Sun, 10 Nov 2019)
Changed paths:
M CHANGES.rst
M src/zope/testbrowser/browser.py
M src/zope/testbrowser/tests/test_browser.py
Log Message:
-----------
Invalidate caches in Browser.goBack()
Most of the cached attributes invalidated by Browser._changed() were
based on the response, so it makes more sense to invalidate them from
Browser._setResponse. This means that Browser.goBack() now invalidates
these caches, so subsequent uses of methods such as Browser.getLink()
work properly.
_req_content_type is an exception to this: this is a property of the
request, set by Browser.post(), and it still makes sense to clear this
in Browser._preparedRequest().
Fixes #83.
Commit: 784e0c60956a25a9e57012cf7d4b0e69360edcf8
https://github.com/zopefoundation/zope.testbrowser/commit/784e0c60956a25a9e57012cf7d4b0e69360edcf8
Author: Colin Watson <cjwatson at ubuntu.com>
Date: 2019-11-10 (Sun, 10 Nov 2019)
Changed paths:
M CHANGES.rst
M src/zope/testbrowser/browser.py
M src/zope/testbrowser/tests/test_browser.py
Log Message:
-----------
Merge pull request #84 from cjwatson/fix-goBack
Invalidate caches in Browser.goBack()
Compare: https://github.com/zopefoundation/zope.testbrowser/compare/e0dd8104b4d8...784e0c60956a
More information about the checkins
mailing list