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

GitHub noreply at github.com
Wed Feb 1 17:01:22 CET 2017


  Branch: refs/heads/str-format-213
  Home:   https://github.com/zopefoundation/AccessControl
  Commit: fc1bb71d97646458b29b50d8ce956f3da14f33d9
      https://github.com/zopefoundation/AccessControl/commit/fc1bb71d97646458b29b50d8ce956f3da14f33d9
  Author: Maurits van Rees <maurits at vanrees.org>
  Date:   2017-02-01 (Wed, 01 Feb 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: c0422f037ab698a6ca50a39b27c95e752798e159
      https://github.com/zopefoundation/AccessControl/commit/c0422f037ab698a6ca50a39b27c95e752798e159
  Author: Maurits van Rees <maurits at vanrees.org>
  Date:   2017-02-01 (Wed, 01 Feb 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.


  Commit: c7a0a4c61cdd30d2161ca441b51c026ef7da2acf
      https://github.com/zopefoundation/AccessControl/commit/c7a0a4c61cdd30d2161ca441b51c026ef7da2acf
  Author: Maurits van Rees <maurits at vanrees.org>
  Date:   2017-02-01 (Wed, 01 Feb 2017)

  Changed paths:
    M CHANGES.txt
    M src/AccessControl/__init__.py
    A src/AccessControl/safe_formatter.py
    A src/AccessControl/tests/normal_zope3_page_template.pt
    A src/AccessControl/tests/test_formatter.py
    A src/AccessControl/tests/using_format_zope3_page_template.pt

  Log Message:
  -----------
  In `str.format`, check the security for attributes that are accessed.

Part of PloneHotfix20170117.


  Commit: 96be08ac7ebe83e927c8b41e2cdd2edff535fff6
      https://github.com/zopefoundation/AccessControl/commit/96be08ac7ebe83e927c8b41e2cdd2edff535fff6
  Author: Maurits van Rees <maurits at vanrees.org>
  Date:   2017-02-01 (Wed, 01 Feb 2017)

  Changed paths:
    M .gitignore

  Log Message:
  -----------
  Updated .gitignore to ignore stuff from a possible virtualenv.


  Commit: 2960e67750698d76dc40db3f983a52a3f47bdbf2
      https://github.com/zopefoundation/AccessControl/commit/2960e67750698d76dc40db3f983a52a3f47bdbf2
  Author: Maurits van Rees <maurits at vanrees.org>
  Date:   2017-02-01 (Wed, 01 Feb 2017)

  Changed paths:
    M src/AccessControl/tests/test_formatter.py

  Log Message:
  -----------
  Removed most safe_formatter tests.

They require Products.PageTemplates/Zope2.
We will move them there.


Compare: https://github.com/zopefoundation/AccessControl/compare/94cdc5fb3ed0...2960e6775069


More information about the checkins mailing list