[Checkins] [zopefoundation/zope.security] d59c57: Checkpoint to ask for help.

GitHub noreply at github.com
Mon Mar 11 17:20:14 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.security
  Commit: d59c575269bafa1429608f9433bdaccb0f5568ee
      https://github.com/zopefoundation/zope.security/commit/d59c575269bafa1429608f9433bdaccb0f5568ee
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2013-02-14 (Thu, 14 Feb 2013)

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

  Log Message:
  -----------
  Checkpoint to ask for help.


  Commit: aa830118284fc1c5a6881f8258f39e046a28ce79
      https://github.com/zopefoundation/zope.security/commit/aa830118284fc1c5a6881f8258f39e046a28ce79
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2013-03-08 (Fri, 08 Mar 2013)

  Changed paths:
    A .travis.yml
    M CHANGES.rst
    A TODO-4.0.txt
    M bootstrap.py
    M buildout.cfg
    M docs/api/checker.rst
    M docs/api/decorator.rst
    M docs/api/permission.rst
    M docs/api/zcml.rst
    M setup.cfg
    M setup.py
    M src/zope/security/_proxy.c
    M src/zope/security/_zope_security_checker.c
    M src/zope/security/checker.py
    M src/zope/security/examples/sandbox.py
    M src/zope/security/metaconfigure.py
    M src/zope/security/testing.py
    M src/zope/security/tests/test_proxy.py
    M tox.ini

  Log Message:
  -----------
  Merge branch 'master' into pure_python_proxy


  Commit: 950ca7aeee848936d26bf2839d4472e4ad876fa7
      https://github.com/zopefoundation/zope.security/commit/950ca7aeee848936d26bf2839d4472e4ad876fa7
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2013-03-08 (Fri, 08 Mar 2013)

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

  Log Message:
  -----------
  Restore 100% coverage.

Some tests are still failing. :(


  Commit: a056283f72986c9690cb4d3f72026cf7b9bc9ed0
      https://github.com/zopefoundation/zope.security/commit/a056283f72986c9690cb4d3f72026cf7b9bc9ed0
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-08 (Fri, 08 Mar 2013)

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

  Log Message:
  -----------
  I think I fixed some tests. Tres, can you review?


  Commit: 676ee74eb2753fe016cf4f5ece937719414ffff9
      https://github.com/zopefoundation/zope.security/commit/676ee74eb2753fe016cf4f5ece937719414ffff9
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-08 (Fri, 08 Mar 2013)

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

  Log Message:
  -----------
  Avoid overwriting of checked name when tests compare. Strangely, only the
Python proxy implementation is affected. I am not sure why __eq__ is not
looked up during test output comparison with C-based proxies.


  Commit: 8965042862f5eda3e5cfeda2671c772a46fb7bc9
      https://github.com/zopefoundation/zope.security/commit/8965042862f5eda3e5cfeda2671c772a46fb7bc9
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

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

  Log Message:
  -----------
  Make sure we use the API to create a new proxy. The tests depend on that
expectation.


  Commit: ded617955b2dba40a1739cf27d155e7da3608644
      https://github.com/zopefoundation/zope.security/commit/ded617955b2dba40a1739cf27d155e7da3608644
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

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

  Log Message:
  -----------
  Fixed power tests by disabling the ones for PyProxy that expected
behavior that cannot be created with a pure Python proxy implementation.

Undid one previous checking where the DummyChecker only records the first
checked name.

In several forbidden tests, add a few allowed names, since those are
needed to make the tests pass. In the Python version of the proxy, some
__<name>__ methods are used where the C implementation gets away without
them.


  Commit: 19f01d59f4b4e7dac9a714d202c5f44e7a850701
      https://github.com/zopefoundation/zope.security/commit/19f01d59f4b4e7dac9a714d202c5f44e7a850701
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

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

  Log Message:
  -----------
  Implemented proper handling when __str__ and __repr__ are not allowed. In
those cases we do not want to fail with a cryptic error, but provide an
informative output.


  Commit: 4d01d7ff8cf8d4c657758d04b75aba7c0fdae97a
      https://github.com/zopefoundation/zope.security/commit/4d01d7ff8cf8d4c657758d04b75aba7c0fdae97a
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

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

  Log Message:
  -----------
  Fixed all attr access: __getattr__, __setattr__, __delattr__.

The main work consisted of making sure that access is allowed and that
results are also proxied.


  Commit: bf5748bf463bb8238cfa9b96cd08131bfb12b48d
      https://github.com/zopefoundation/zope.security/commit/bf5748bf463bb8238cfa9b96cd08131bfb12b48d
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

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

  Log Message:
  -----------
  Change the test expectation that was failing for the C and Py proxy
version.


  Commit: f421e5b218f080f580d2b490b04575dc787165c3
      https://github.com/zopefoundation/zope.security/commit/f421e5b218f080f580d2b490b04575dc787165c3
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

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

  Log Message:
  -----------
  Implemented rich comparison operators as non-checked, which is what the C
implementation does.

Implemented __coerce__() in a special way, since _check_name did not work
for some reason.

All tests pass on Python 2.7.


  Commit: 8cce64bbef274d776ac4856843ebe25b7d9cb51f
      https://github.com/zopefoundation/zope.security/commit/8cce64bbef274d776ac4856843ebe25b7d9cb51f
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

  Changed paths:
    M src/zope/security/__init__.py
    M src/zope/security/_compat.py
    M src/zope/security/checker.py
    M src/zope/security/proxy.py
    M src/zope/security/tests/test_proxy.py
    M tox.ini

  Log Message:
  -----------
  Start of PyPy support.


  Commit: 53db18f89778d18cae8ad9e0581eb5f4e059a3f1
      https://github.com/zopefoundation/zope.security/commit/53db18f89778d18cae8ad9e0581eb5f4e059a3f1
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

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

  Log Message:
  -----------
  Actually made the security proxy secure by not allowing access to
_wrapped and _checker.


  Commit: 82fd54dca53bbd7b8700f5a240bde13bf3c41984
      https://github.com/zopefoundation/zope.security/commit/82fd54dca53bbd7b8700f5a240bde13bf3c41984
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-11 (Mon, 11 Mar 2013)

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

  Log Message:
  -----------
  Changed strategy to hide wrapped to not use the secret anymore, but look
at the frames. This fixes a bunch of issues when actually doing binary
ops (for which I added a test now).

__len__ must return a non-proxied object, so I added a new parameter to
the name check wrapper to handle that case.

Fixed all but 12 test failures on PyPy.


  Commit: 928658355be5bec8fa7a722b132a672e9ac6afaa
      https://github.com/zopefoundation/zope.security/commit/928658355be5bec8fa7a722b132a672e9ac6afaa
  Author: Stephan Richter <stephan.richter at gmail.com>
  Date:   2013-03-11 (Mon, 11 Mar 2013)

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

  Log Message:
  -----------
  - Make sure that __str__ and __repr__ never fail by catching all exceptions
  and using the custom fallback. (This is equivalent to the C Proxy behavior.)

- Allow __getslice__ and __setslice__ to access the original object's
  implementation instead of always falling back to __getitem__ and
  __setitem__. Do we really want to support this or just remove the test?
  (It is deprecated this Python 2.0!)

- Make sure that Checker.set_permissions is set initiated as an empty dict, if
  not provided. While not immediately obvious, this is the C-based checker
  behavior as well.

Oh yeah, all tests pass now on py26, py27, py32, py33, and pypy!


  Commit: fcf50572192bcc003e0f42faeffed419f711372c
      https://github.com/zopefoundation/zope.security/commit/fcf50572192bcc003e0f42faeffed419f711372c
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2013-03-11 (Mon, 11 Mar 2013)

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

  Log Message:
  -----------
  Add test environments for the PURE_PYTHON environment variable.

Get the one test which failed under that environment to pass.


  Commit: 5d262c198470c02d77f9aa3ace1c2350ffe3819b
      https://github.com/zopefoundation/zope.security/commit/5d262c198470c02d77f9aa3ace1c2350ffe3819b
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2013-03-11 (Mon, 11 Mar 2013)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  Note support for PyPy.


  Commit: 039fa76741fd72ba5bcbfd8764444d989921d96c
      https://github.com/zopefoundation/zope.security/commit/039fa76741fd72ba5bcbfd8764444d989921d96c
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2013-03-11 (Mon, 11 Mar 2013)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  Prep 4.0.0b1 release.


  Commit: 4a1b598db4824efd1679662c1ff3cf928333df25
      https://github.com/zopefoundation/zope.security/commit/4a1b598db4824efd1679662c1ff3cf928333df25
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2013-03-11 (Mon, 11 Mar 2013)

  Changed paths:
    M CHANGES.rst
    M setup.py

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


Compare: https://github.com/zopefoundation/zope.security/compare/21bedd54cead...4a1b598db482


More information about the checkins mailing list