[Checkins] [zopefoundation/zope.security] dceaae: Allow public access to CheckerPublic.__module__

GitHub noreply at github.com
Wed May 24 02:15:02 CEST 2017


  Branch: refs/heads/mitchellrj-extended-setattr-behavior
  Home:   https://github.com/zopefoundation/zope.security
  Commit: dceaae23490a5cb2c305246305e6b3a51c29d3a5
      https://github.com/zopefoundation/zope.security/commit/dceaae23490a5cb2c305246305e6b3a51c29d3a5
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2014-01-08 (Wed, 08 Jan 2014)

  Changed paths:
    M src/zope/security/checker.py

  Log Message:
  -----------
  Allow public access to CheckerPublic.__module__

Story time: when you pickle an object (call it obj) with a custom
__reduce__ method that returns a string, the pickle module assumes this
is a global and wants to know which module it came from.

It obviously tries obj.__module__ first, but if that raises
AttributeError, it has this insane fallback loop where it iterates over
sys.modules.items() and for each module (excepting only __main__) checks
if getattr(module, obj.__name__, None) is obj.

Before my change if you tried

    >>> from zope.security.checker import CheckerPublic
    >>> CheckerPublic.__module__

you'd get

    ForbiddenAttribute: ('__module__', Global(CheckerPublic,zope.security.checker))

Until now it was just a silly inefficiency.  But then six 1.5.0 was
released with an interesting change:
https://bitbucket.org/gutworth/six/commits/fc2decf405ea6bcd3226bb1b77069d2a2279e0b7

Now six puts these six.MovedModule() wrappers into sys.modules.  When
you try to access their attributes, the wrappers try to import random
modules, including those that may not exist in your Python (_winreg on
Linux?  _tkinter also is often split off into a separate OS package).
Boom: running zope.security's tests now fails in random ways:
https://bitbucket.org/gutworth/six/issue/54/dependency-on-optional-tkinter-gdbm

So let's make sure pickle doesn't need to iterate through
sys.modules.items() and avoid the issue, m'kay?


  Commit: ec31274af11fa5befe0d51f25c571239c6f70064
      https://github.com/zopefoundation/zope.security/commit/ec31274af11fa5befe0d51f25c571239c6f70064
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2014-01-08 (Wed, 08 Jan 2014)

  Changed paths:
    M src/zope/security/checker.py

  Log Message:
  -----------
  Typo in comment, PEP-8 spacing around assignment


  Commit: 45e8a8563dcbc82c615fb4c52aad067735580443
      https://github.com/zopefoundation/zope.security/commit/45e8a8563dcbc82c615fb4c52aad067735580443
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2014-01-08 (Wed, 08 Jan 2014)

  Changed paths:
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  Try to make the tests pass on Windows, harder

Judging from http://winbot.zope.org/builders/zope.security_py_265_32/builds/1107/steps/test/logs/stdio
the address is generated using upper-case hex digits.


  Commit: 01f798705f7dae5fcc82274099ec8d0d8f78b873
      https://github.com/zopefoundation/zope.security/commit/01f798705f7dae5fcc82274099ec8d0d8f78b873
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2014-01-09 (Thu, 09 Jan 2014)

  Changed paths:
    M src/zope/security/proxy.py
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  Merge the two duplicated _fmt_address()


  Commit: 0637a97c5b0988d37a9adadf2234bab4be9c26d9
      https://github.com/zopefoundation/zope.security/commit/0637a97c5b0988d37a9adadf2234bab4be9c26d9
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2014-03-17 (Mon, 17 Mar 2014)

  Changed paths:
    M CHANGES.rst
    M setup.py
    M tox.ini

  Log Message:
  -----------
  Note explicit support for Python 3.4.


  Commit: 6a73c0d98bb2ad7fffcae39d3803f5492a6b7266
      https://github.com/zopefoundation/zope.security/commit/6a73c0d98bb2ad7fffcae39d3803f5492a6b7266
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2014-03-19 (Wed, 19 Mar 2014)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  Prep 4.0.1 release.


  Commit: 007f4ffc3fb7dee3deeb7fbd88926fb07a0848a5
      https://github.com/zopefoundation/zope.security/commit/007f4ffc3fb7dee3deeb7fbd88926fb07a0848a5
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2014-03-19 (Wed, 19 Mar 2014)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  svb


  Commit: 4f596d9cd7d6fcb5df98b603c9fcd4ca6282d420
      https://github.com/zopefoundation/zope.security/commit/4f596d9cd7d6fcb5df98b603c9fcd4ca6282d420
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2014-11-06 (Thu, 06 Nov 2014)

  Changed paths:
    M bootstrap.py

  Log Message:
  -----------
  Update to latest bootstrap.py

Downloaded from http://downloads.buildout.org/2/bootstrap.py


  Commit: 18d6f9a4c5ac4a979c6a33f66b89f93956003604
      https://github.com/zopefoundation/zope.security/commit/18d6f9a4c5ac4a979c6a33f66b89f93956003604
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2014-12-18 (Thu, 18 Dec 2014)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  Speed up Travis start via 'sudo: false'.

See: http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/


  Commit: 7f72c62e26920c1c9bd5af302bcc1faac2125115
      https://github.com/zopefoundation/zope.security/commit/7f72c62e26920c1c9bd5af302bcc1faac2125115
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2014-12-20 (Sat, 20 Dec 2014)

  Changed paths:
    M bootstrap.py

  Log Message:
  -----------
  Update to latest bootstrap.


  Commit: 0938ef3957b7379a1d858a57a6afb4667be38352
      https://github.com/zopefoundation/zope.security/commit/0938ef3957b7379a1d858a57a6afb4667be38352
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2014-12-20 (Sat, 20 Dec 2014)

  Changed paths:
    M .gitignore

  Log Message:
  -----------
  Ignore derived.


  Commit: a8817b7ee8df20e9cceaebdccf44436c78370b46
      https://github.com/zopefoundation/zope.security/commit/a8817b7ee8df20e9cceaebdccf44436c78370b46
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2014-12-29 (Mon, 29 Dec 2014)

  Changed paths:
    M setup.py

  Log Message:
  -----------
  Bow to our new PEP 440 overlords.

[ci skip]


  Commit: eda66bd3b8f62c2f4f790280437e25f04c2b58c7
      https://github.com/zopefoundation/zope.security/commit/eda66bd3b8f62c2f4f790280437e25f04c2b58c7
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2014-12-29 (Mon, 29 Dec 2014)

  Changed paths:
    M CHANGES.rst
    M README.rst

  Log Message:
  -----------
  Add Travis badge, garden ReST.

[ci skip]


  Commit: edbc30c18a3cc1f871bed827baacea6b59a8b952
      https://github.com/zopefoundation/zope.security/commit/edbc30c18a3cc1f871bed827baacea6b59a8b952
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-01-22 (Thu, 22 Jan 2015)

  Changed paths:
    A docs/_static/.gitignore

  Log Message:
  -----------
  Silence Sphinx warning.


  Commit: 7414b1f635a4b14522e50235fed667f3088cc38d
      https://github.com/zopefoundation/zope.security/commit/7414b1f635a4b14522e50235fed667f3088cc38d
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-01-24 (Sat, 24 Jan 2015)

  Changed paths:
    A docs/hacking.rst
    M docs/index.rst

  Log Message:
  -----------
  Add hacking docs.


  Commit: 1cfa3274927b24d656af73a226391c7a1279b3e6
      https://github.com/zopefoundation/zope.security/commit/1cfa3274927b24d656af73a226391c7a1279b3e6
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    A rtd.txt

  Log Message:
  -----------
  Add RTD dependencies.


  Commit: 8f859a0c3ad345a7e427f07651264e1585c3fe9e
      https://github.com/zopefoundation/zope.security/commit/8f859a0c3ad345a7e427f07651264e1585c3fe9e
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M README.rst

  Log Message:
  -----------
  Add PyPI and RTD badges.


  Commit: 25241e111c15b6e75343ccdac912882ebff0cfd2
      https://github.com/zopefoundation/zope.security/commit/25241e111c15b6e75343ccdac912882ebff0cfd2
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-05-27 (Wed, 27 May 2015)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/proxy.py

  Log Message:
  -----------
  Let z.s.checker.Global objects be pickled when security-proxied under PyPy with zope.proxy 4.1.5


  Commit: dc88a042f9ff94a2a9a67c80efe030d36054f421
      https://github.com/zopefoundation/zope.security/commit/dc88a042f9ff94a2a9a67c80efe030d36054f421
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-05-31 (Sun, 31 May 2015)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/proxy.py
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  If the very first call to removeSecurityProxy was given a proxy, the results would be wrong under PyPy. See zopefoundation/zope.pagetemplate#4


  Commit: 2da9f225088b0aad321fc455f218453fe83483b0
      https://github.com/zopefoundation/zope.security/commit/2da9f225088b0aad321fc455f218453fe83483b0
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-05-31 (Sun, 31 May 2015)

  Changed paths:
    M src/zope/security/proxy.py

  Log Message:
  -----------
  Restore dict access of __builtins__ for non-PyPy. Interesting that it doesn't fail interactively though.


  Commit: 2b0195ccd8586f0daa0db342866e15cdfac123bb
      https://github.com/zopefoundation/zope.security/commit/2b0195ccd8586f0daa0db342866e15cdfac123bb
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-01 (Mon, 01 Jun 2015)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/proxy.py
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  Merge pull request #11 from NextThought/pypy-support

Compatibility with zope.proxy 4.1.5 under PyPy.


  Commit: c3e15d801b0ea46ead0931246b02b8f8d086b9cb
      https://github.com/zopefoundation/zope.security/commit/c3e15d801b0ea46ead0931246b02b8f8d086b9cb
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-01 (Mon, 01 Jun 2015)

  Changed paths:
    M src/zope/security/checker.py
    M src/zope/security/proxy.py

  Log Message:
  -----------
  Fix 'py27-pure'/'py33-pure' tox environments.


  Commit: be4c3a69977bd64e3dcf47a5c000592706a6d113
      https://github.com/zopefoundation/zope.security/commit/be4c3a69977bd64e3dcf47a5c000592706a6d113
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-01 (Mon, 01 Jun 2015)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  Switch to using 'tox' on Travis.

Add tests for 'py27-pure', 'py33-pure', 'py34', 'coverage', and 'docs'
builds.


  Commit: 9b6ea95fd506e507ed26c1ca7418f5ffb14c12e4
      https://github.com/zopefoundation/zope.security/commit/9b6ea95fd506e507ed26c1ca7418f5ffb14c12e4
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  Prep 4.0.2 release.


  Commit: 74d7b3ad03bb74a9df50dc467810d619271b731d
      https://github.com/zopefoundation/zope.security/commit/74d7b3ad03bb74a9df50dc467810d619271b731d
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  svb


  Commit: 10a9a4634f9398b4554f18b34fc2004558acf075
      https://github.com/zopefoundation/zope.security/commit/10a9a4634f9398b4554f18b34fc2004558acf075
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  Skip the failing class-hashing tests under PyPy 2.5.0. Fixes #11.


  Commit: ee409d022cba7fed2ed8e2c35f92dfe56901a625
      https://github.com/zopefoundation/zope.security/commit/ee409d022cba7fed2ed8e2c35f92dfe56901a625
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  Merge pull request #12 from NextThought/pypy-support

Skip the failing class-hashing tests under PyPy 2.5.0. Fixes #11.


  Commit: 349723661c15ea30dfd9df3bc32ae1df8c8ad0df
      https://github.com/zopefoundation/zope.security/commit/349723661c15ea30dfd9df3bc32ae1df8c8ad0df
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M src/zope/security/checker.py
    M src/zope/security/tests/test_checker.py

  Log Message:
  -----------
  Make iteration over security-proxied items work under Python3 using the pure-python implementation. Fixes zopefoundation/zope.component#16.


  Commit: 3606074d3814d4876608ccfac13bf32cd0fe473e
      https://github.com/zopefoundation/zope.security/commit/3606074d3814d4876608ccfac13bf32cd0fe473e
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M setup.py
    M src/zope/security/checker.py
    M src/zope/security/proxy.py

  Log Message:
  -----------
  Merge branch 'master' of https://github.com/zopefoundation/zope.security into pypy-support


  Commit: 51a392b8a94fba1b75c7a5e4f28dd7875cbdd54d
      https://github.com/zopefoundation/zope.security/commit/51a392b8a94fba1b75c7a5e4f28dd7875cbdd54d
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  Changelog.


  Commit: b99d64ba9e90f2f3bf69b68613b4a7e48a1c2345
      https://github.com/zopefoundation/zope.security/commit/b99d64ba9e90f2f3bf69b68613b4a7e48a1c2345
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  Garden changelog.


  Commit: 15bcfca4ae23e94586af3df86f607f9047c8e188
      https://github.com/zopefoundation/zope.security/commit/15bcfca4ae23e94586af3df86f607f9047c8e188
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/checker.py
    M src/zope/security/tests/test_checker.py

  Log Message:
  -----------
  Merge branch 'NextThought-pypy-support'


  Commit: 707952d3fdcfbdc2feb9ed980c12b852ea37935e
      https://github.com/zopefoundation/zope.security/commit/707952d3fdcfbdc2feb9ed980c12b852ea37935e
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  Prep 4.0.3 release.


  Commit: b40c7764ce686d972ac0d4a7ada888ed1a9838b9
      https://github.com/zopefoundation/zope.security/commit/b40c7764ce686d972ac0d4a7ada888ed1a9838b9
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-06-02 (Tue, 02 Jun 2015)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  svb


  Commit: 127f53ecdb12c418e200ff25e2858ccb4617267c
      https://github.com/zopefoundation/zope.security/commit/127f53ecdb12c418e200ff25e2858ccb4617267c
  Author: Felix Yan <felixonmars at archlinux.org>
  Date:   2015-11-08 (Sun, 08 Nov 2015)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M README.rst
    M setup.py
    M tox.ini

  Log Message:
  -----------
  Note explicit support for Python 3.5


  Commit: 1be18cd5ca667f735635ec0225c296b6cbc06b6b
      https://github.com/zopefoundation/zope.security/commit/1be18cd5ca667f735635ec0225c296b6cbc06b6b
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2015-11-07 (Sat, 07 Nov 2015)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M README.rst
    M setup.py
    M tox.ini

  Log Message:
  -----------
  Merge pull request #14 from felixonmars/master

Note explicit support for Python 3.5


  Commit: 86912d971729d77ab0ed79617fbce7b0c536c255
      https://github.com/zopefoundation/zope.security/commit/86912d971729d77ab0ed79617fbce7b0c536c255
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2016-03-23 (Wed, 23 Mar 2016)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M setup.py
    M tox.ini

  Log Message:
  -----------
  Drop support for Python 2.6 and 3.2.


  Commit: 92133dd1aae7eeee83fa50d2fd6a46a1974f27a6
      https://github.com/zopefoundation/zope.security/commit/92133dd1aae7eeee83fa50d2fd6a46a1974f27a6
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2016-03-23 (Wed, 23 Mar 2016)

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  Bump version in CHANGES.rst to match setup.py.


  Commit: c564507028d71c1ccf186986a261432a9c2dac4c
      https://github.com/zopefoundation/zope.security/commit/c564507028d71c1ccf186986a261432a9c2dac4c
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2016-03-23 (Wed, 23 Mar 2016)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M setup.py
    M tox.ini

  Log Message:
  -----------
  Merge pull request #15 from zopefoundation/drop-py26-py32-support

Drop support for Python 2.6 and 3.2.


  Commit: 38e70f2396c584e247d3bcf072f4443e50a19e83
      https://github.com/zopefoundation/zope.security/commit/38e70f2396c584e247d3bcf072f4443e50a19e83
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2016-04-14 (Thu, 14 Apr 2016)

  Changed paths:
    M CHANGES.rst
    M tox.ini

  Log Message:
  -----------
  Don't use/poison global wheel cache when building w/ PURE_PYTHON.


  Commit: 5dabdf4b0849218185a87f5e4c214da475f1bc66
      https://github.com/zopefoundation/zope.security/commit/5dabdf4b0849218185a87f5e4c214da475f1bc66
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2016-04-15 (Fri, 15 Apr 2016)

  Changed paths:
    M CHANGES.rst
    M tox.ini

  Log Message:
  -----------
  Merge pull request #16 from zopefoundation/avoid-poisoning-wheel-cache-python-pure

Don't use/poison global wheel cache when building w/ PURE_PYTHON.


  Commit: 7de6d86110435d6e6f15313a3b3ec6ed97e1e396
      https://github.com/zopefoundation/zope.security/commit/7de6d86110435d6e6f15313a3b3ec6ed97e1e396
  Author: Adam Groszer <agroszer at gmail.com>
  Date:   2016-04-20 (Wed, 20 Apr 2016)

  Changed paths:
    M bootstrap.py

  Log Message:
  -----------
  update bootstrap.py


  Commit: e947f88e772f02c0214a807cb5187a7fa3c1e488
      https://github.com/zopefoundation/zope.security/commit/e947f88e772f02c0214a807cb5187a7fa3c1e488
  Author: Michael Howitz <mh at gocept.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    R TODO-4.0.txt

  Log Message:
  -----------
  Remove already done todos


  Commit: 82d9e1ecd989a10b6bbf21774bb067ae4e32402d
      https://github.com/zopefoundation/zope.security/commit/82d9e1ecd989a10b6bbf21774bb067ae4e32402d
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    A appveyor.yml

  Log Message:
  -----------
  Enable Appveyor CI


  Commit: 7a677d8e92774290c6ce4e92b5ebac8b25209277
      https://github.com/zopefoundation/zope.security/commit/7a677d8e92774290c6ce4e92b5ebac8b25209277
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/zope/security/proxy.py

  Log Message:
  -----------
  Fix test failures on 64-bit Windows

Hopefully.  Appveyor should tell me if I've succeeded.

Fixes #17.


  Commit: 066dd259af0289efd7551a33ea5cf2d5fb1dc476
      https://github.com/zopefoundation/zope.security/commit/066dd259af0289efd7551a33ea5cf2d5fb1dc476
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M appveyor.yml

  Log Message:
  -----------
  Appveyor: enable pure-Python builds


  Commit: 6292afe78a5eee46405d982405fcc63603478504
      https://github.com/zopefoundation/zope.security/commit/6292afe78a5eee46405d982405fcc63603478504
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    A appveyor.yml
    M src/zope/security/proxy.py

  Log Message:
  -----------
  Merge pull request #18 from zopefoundation/fix-win64-maybe

Fix tests on 64-bit Windows


  Commit: 9aaf59b541bc3e0616f9f9f95b6345d1a4400e68
      https://github.com/zopefoundation/zope.security/commit/9aaf59b541bc3e0616f9f9f95b6345d1a4400e68
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-04-24 (Mon, 24 Apr 2017)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M appveyor.yml
    M setup.py
    M src/zope/security/checker.py
    M src/zope/security/tests/test_checker.py
    M tox.ini

  Log Message:
  -----------
  Fix iteration of BTrees.items() in pure-python; and 3.6 support

Also fix ``list(proxy_btree.items())`` (or a list comprehension of the
same) in Python 3, which wants the ``__len__`` for a hint.

This is a central place to make sure these all behave consistently.

Fixes #20

Also drop pypy3

As a 3.2 implementation, it's not supported by pip anymore. There is a
much more recent version, 3.5-beta, but it's not on Travis yet. The
3.3-alpha which is on Travis is a dead end.


  Commit: 7fb6a43f3d8d7f60328992e28c8f93dff92e38e1
      https://github.com/zopefoundation/zope.security/commit/7fb6a43f3d8d7f60328992e28c8f93dff92e38e1
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-04-24 (Mon, 24 Apr 2017)

  Changed paths:
    M appveyor.yml

  Log Message:
  -----------
  Another crack at fixing the Python 3 namespace issues on appveyor


  Commit: 0cf7a9aa2b70be82ca9dd65273ef05d79338290e
      https://github.com/zopefoundation/zope.security/commit/0cf7a9aa2b70be82ca9dd65273ef05d79338290e
  Author: Jason Madden <jason+github at nextthought.com>
  Date:   2017-04-24 (Mon, 24 Apr 2017)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M appveyor.yml
    M setup.py
    M src/zope/security/checker.py
    M src/zope/security/tests/test_checker.py
    M tox.ini

  Log Message:
  -----------
  Merge pull request #21 from zopefoundation/issue20

Fix iteration of BTrees.items() in pure-python; and 3.6 support


  Commit: a8ffa268f8c8cd8fb6e553b7764263fe53d2111f
      https://github.com/zopefoundation/zope.security/commit/a8ffa268f8c8cd8fb6e553b7764263fe53d2111f
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2017-04-24 (Mon, 24 Apr 2017)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  Prep 4.1.0 release.


  Commit: 40e58ec495da58dd458a38912ef900a6b6e70a9e
      https://github.com/zopefoundation/zope.security/commit/40e58ec495da58dd458a38912ef900a6b6e70a9e
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2017-04-24 (Mon, 24 Apr 2017)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  svb


  Commit: 486a6c3801bcb7473f190adcc5f80f98fda87362
      https://github.com/zopefoundation/zope.security/commit/486a6c3801bcb7473f190adcc5f80f98fda87362
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-04-26 (Wed, 26 Apr 2017)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/checker.py
    M src/zope/security/tests/test_checker.py

  Log Message:
  -----------
  Be specific that BTrees.keys and .values also are fixed in the same way that .items was. See #20 and #21.


  Commit: 2b82f83048802017a451d2abcdc2a2bae8ece182
      https://github.com/zopefoundation/zope.security/commit/2b82f83048802017a451d2abcdc2a2bae8ece182
  Author: Jason Madden <jason+github at nextthought.com>
  Date:   2017-05-02 (Tue, 02 May 2017)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/checker.py
    M src/zope/security/tests/test_checker.py

  Log Message:
  -----------
  Merge pull request #22 from zopefoundation/issue20-extension

Be specific that BTrees.keys and .values also are fixed


  Commit: cdb0161c7edf67857a7625ec666a80c9cd35c297
      https://github.com/zopefoundation/zope.security/commit/cdb0161c7edf67857a7625ec666a80c9cd35c297
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-05-17 (Wed, 17 May 2017)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/checker.py
    M src/zope/security/tests/test_checker.py

  Log Message:
  -----------
  OrderedDict, BTree and dict all iterate the same way.

Fixes #23. Also a further fix for #20 (you couldn't iterate a BTree
all by itself).

Refactor the test case for BTree to be a shared implementation and
confirm that it works as expected for dict, using the actual dict
checker. Then apply it to OrderedDict and BTree and fix the resulting
failures by refactoring the fixup in checker.py to a shared
implementation and applying it.


  Commit: 7c93ce533da0f56d707200f66475e993541b3604
      https://github.com/zopefoundation/zope.security/commit/7c93ce533da0f56d707200f66475e993541b3604
  Author: Jason Madden <jason+github at nextthought.com>
  Date:   2017-05-17 (Wed, 17 May 2017)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/checker.py
    M src/zope/security/tests/test_checker.py

  Log Message:
  -----------
  Merge pull request #24 from zopefoundation/fix-ordered-dict-checker

OrderedDict, BTree and dict all iterate the same way.


  Commit: bd1a7a355539ea37fc45d912a311d55bfd0ed788
      https://github.com/zopefoundation/zope.security/commit/bd1a7a355539ea37fc45d912a311d55bfd0ed788
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2017-05-17 (Wed, 17 May 2017)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  Prep 4.1.1 release.


  Commit: 4e08d85f4ad2d9fb1f1acbe1fad004c81b6d33c0
      https://github.com/zopefoundation/zope.security/commit/4e08d85f4ad2d9fb1f1acbe1fad004c81b6d33c0
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2017-05-17 (Wed, 17 May 2017)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  svb


  Commit: 9e0b820f00f0ed0ac44e82c66afa53180ed9edc6
      https://github.com/zopefoundation/zope.security/commit/9e0b820f00f0ed0ac44e82c66afa53180ed9edc6
  Author: Richard Mitchell <richard.j.mitchell at gmail.com>
  Date:   2017-05-23 (Tue, 23 May 2017)

  Changed paths:
    M CHANGES.rst
    M docs/api/interfaces.rst
    M src/zope/security/_proxy.c
    M src/zope/security/interfaces.py
    M src/zope/security/proxy.py
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  Add the ability to perform checks based on values assigned to attributes, deletion of attributes and operands of in-place mutation operations.


  Commit: 371f62d8ea6d037bb75edf5bb15b4cfe8c4839c2
      https://github.com/zopefoundation/zope.security/commit/371f62d8ea6d037bb75edf5bb15b4cfe8c4839c2
  Author: Richard Mitchell <richard.j.mitchell at gmail.com>
  Date:   2017-05-23 (Tue, 23 May 2017)

  Changed paths:
    M src/zope/security/_proxy.c

  Log Message:
  -----------
  Fix a couple of typos.


  Commit: 3dfa1f5dd96830b7cc33419832c0c812e4849d58
      https://github.com/zopefoundation/zope.security/commit/3dfa1f5dd96830b7cc33419832c0c812e4849d58
  Author: Richard Mitchell <richard.j.mitchell at gmail.com>
  Date:   2017-05-23 (Tue, 23 May 2017)

  Changed paths:
    M src/zope/security/checker.py

  Log Message:
  -----------
  Support value-based checkers from utility function `canWrite`.


  Commit: 9c8d5fbf888dac498b40b533af55cac75db94ced
      https://github.com/zopefoundation/zope.security/commit/9c8d5fbf888dac498b40b533af55cac75db94ced
  Author: Richard Mitchell <richard.j.mitchell at gmail.com>
  Date:   2017-05-23 (Tue, 23 May 2017)

  Changed paths:
    M src/zope/security/_proxy.c

  Log Message:
  -----------
  Wrap lines longer than 79 chars.


  Commit: bde3b8e1df7764fc9580ba21925b2f6f09cf3d6d
      https://github.com/zopefoundation/zope.security/commit/bde3b8e1df7764fc9580ba21925b2f6f09cf3d6d
  Author: Richard Mitchell <richard.j.mitchell at gmail.com>
  Date:   2017-05-23 (Tue, 23 May 2017)

  Changed paths:
    M src/zope/security/_proxy.c

  Log Message:
  -----------
  Add braces to big if/else.


  Commit: f483866911afb2f2d408af6259ba8bf8a557968c
      https://github.com/zopefoundation/zope.security/commit/f483866911afb2f2d408af6259ba8bf8a557968c
  Author: Richard Mitchell <richard.j.mitchell at gmail.com>
  Date:   2017-05-23 (Tue, 23 May 2017)

  Changed paths:
    M src/zope/security/_proxy.c

  Log Message:
  -----------
  Shuffle comments around. `NULL` checks only apply to calls with `str_check_setattr`.


  Commit: 735e7ac4b5b46dcedeeca3296713241d42555a64
      https://github.com/zopefoundation/zope.security/commit/735e7ac4b5b46dcedeeca3296713241d42555a64
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2017-05-23 (Tue, 23 May 2017)

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  Merge branch 'mitchellrj-extended-setattr-behavior' of git://github.com/zopefoundation/zope.security into mitchellrj-extended-setattr-behavior

Conflicts:
	CHANGES.rst


Compare: https://github.com/zopefoundation/zope.security/compare/1656c2ba9d58...735e7ac4b5b4


More information about the checkins mailing list