[Checkins] [zopefoundation/AccessControl] d9ba7e: Added `override_container` context manager.

GitHub noreply at github.com
Fri Jan 27 14:19:32 CET 2017


  Branch: refs/heads/override-containers-213
  Home:   https://github.com/zopefoundation/AccessControl
  Commit: d9ba7e7f68d88fb01edc72c78e42dcef10c936db
      https://github.com/zopefoundation/AccessControl/commit/d9ba7e7f68d88fb01edc72c78e42dcef10c936db
  Author: Maurits van Rees <maurits at vanrees.org>
  Date:   2017-01-27 (Fri, 27 Jan 2017)

  Changed paths:
    M CHANGES.txt
    M src/AccessControl/SimpleObjectPolicies.py
    M src/AccessControl/tests/testZopeSecurityPolicy.py

  Log Message:
  -----------
  Added `override_container` context manager.

Used this in tests to make them pass when the standard permissive
security assertions for strings has been changed.

Related to PloneHotfix20170117.


  Commit: 215ffa1f76dc068c2e4d1d9d943cf53eea62fc51
      https://github.com/zopefoundation/AccessControl/commit/215ffa1f76dc068c2e4d1d9d943cf53eea62fc51
  Author: Maurits van Rees <maurits at vanrees.org>
  Date:   2017-01-27 (Fri, 27 Jan 2017)

  Changed paths:
    M src/AccessControl/SimpleObjectPolicies.py
    M src/AccessControl/tests/testZopeSecurityPolicy.py

  Log Message:
  -----------
  override_containers: delete afterwards when type was not there.

And add tests for this context manager.


Compare: https://github.com/zopefoundation/AccessControl/compare/df6a432da85c...215ffa1f76dc


More information about the checkins mailing list