• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / AccessControl
81%
master: 82%

Build:
Build:
LAST BUILD BRANCH: config-with-c-code-template-3c1c588c
DEFAULT BRANCH: master
Repo Added 04 May 2017 01:40PM UTC
Files 57
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix/dict-views
branch: fix/dict-views
CHANGE BRANCH
x
Reset
  • fix/dict-views
  • 123-prevent-race-condition
  • 123-prevent-race-condition-2
  • 1letter/patch-owner
  • 4.0
  • 4.0a5
  • 4.0a6
  • 4.0a7
  • 4.0b5
  • 4.0b6
  • 4.0b7
  • 4.1
  • 4.2
  • 5.0
  • 5.3
  • 5.3.1
  • 5.4
  • 5.5
  • 5.6
  • 5.7
  • 6.0
  • 6.1
  • 6.2
  • 6.3
  • 7.0
  • 7.1
  • 7.2
  • 83-allow-bytes-as-simple-object-policies
  • TaintedBytes
  • add-deprecations
  • all-repos_autofix_all-repos-sed
  • config-with-c-code
  • config-with-c-code-II
  • config-with-c-code-template-1c0f31f5
  • config-with-c-code-template-3c1c588c
  • config-with-c-code-template-4dc0484e
  • config-with-c-code-template-4eec7859
  • config-with-c-code-template-54befd0e
  • config-with-c-code-template-9f78efd3
  • config-with-c-code-template-a361e1fd
  • config-with-c-code-template-a7193216
  • config-with-c-code-template-e45966cd
  • dataflake/packaging-update
  • dict_kvi_iteration#89
  • drop-history
  • drop-py313
  • drop-py34
  • drop-record-dependency
  • fewer-doctests
  • fix-81
  • fix-85
  • fix-deprecations
  • fix-lint
  • fix-macos-build-errors
  • fix-py34
  • fix-rolemanager
  • fix-roles-order
  • fix_94
  • fix_deprecation_warnings
  • fix_impl_python
  • fix_importerror
  • flake8_isort
  • icemac-patch-1
  • master
  • maurits/setup-py-keywords
  • origin/plone-hotfix20171128-format-master
  • perrinjerome/PURE_PYTHON
  • perrinjerome/getattr_unauthorized
  • proper_args_kwargs
  • pure-python
  • pure-python-switch
  • py3-pure-python
  • py312
  • py37-appveyor
  • py39
  • py3_impor
  • py3_imports
  • python3.7support
  • re-60-simplify-import-guard
  • remove-deprecations
  • remove-old-deprecations
  • remove-outdated-comment
  • rolemanager-py3k-compat
  • rotonen-purepython
  • sallner-update-link
  • str-format-master
  • update-isort
  • update_zmi_icon
  • zmi-bootstrap
  • zodbupdate

13 Mar 2024 08:41AM UTC coverage: 81.316% (+0.2%) from 81.124%
8261778867

Pull #148

github

perrinjerome
Make dict views behave like their unrestricted versions

unlike the restricted versions, the unrestricted versions:
 - are not iterators, they are views
 - have a len
 - are false when the mapping is empty, true otherwise
 - are instances of collections.abc.MappingView

This change aligns the behavior of restricted versions with the behavior
of unrestricted one, while keeping the "guard", which validates the
access with the security manager.

During this refactoring, also change `.items()` to validate
ach keys and values, like `.keys()` and `.values()` do.

Co-authored-by: Dieter Maurer <d-maurer@users.noreply.github.com>
Pull Request #148: Make dict views behave like their unrestricted versions

951 of 1475 branches covered (64.47%)

Branch coverage included in aggregate %.

72 of 72 new or added lines in 3 files covered. (100.0%)

5055 of 5911 relevant lines covered (85.52%)

5.12 hits per line

Relevant lines Covered
Build:
Build:
5911 RELEVANT LINES 5055 COVERED LINES
5.12 HITS PER LINE
Source Files on fix/dict-views
  • Tree
  • List 57
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
8261778867 fix/dict-views Make dict views behave like their unrestricted versions unlike the restricted versions, the unrestricted versions: - are not iterators, they are views - have a len - are false when the mapping is empty, true otherwise - are instances of colle... Pull #148 13 Mar 2024 08:49AM UTC perrinjerome github
81.32
8261775714 fix/dict-views Merge 6722f7e2a into 38a89f0f9 Pull #147 13 Mar 2024 08:45AM UTC web-flow github
81.32
8259278740 fix/dict-views Merge 6ac5c18e3 into 38a89f0f9 Pull #147 13 Mar 2024 04:05AM UTC web-flow github
81.32
8234168124 fix/dict-views Merge 3ee0e2593 into 38a89f0f9 Pull #147 11 Mar 2024 02:08PM UTC web-flow github
81.32
8203781742 fix/dict-views Merge 3666a7afd into 38a89f0f9 Pull #147 08 Mar 2024 01:12PM UTC web-flow github
81.32
8200137766 fix/dict-views Merge cd7e5680a into 38a89f0f9 Pull #147 08 Mar 2024 07:33AM UTC web-flow github
81.29
8200134283 fix/dict-views Merge e866525dc into 38a89f0f9 Pull #147 08 Mar 2024 07:31AM UTC web-flow github
81.29
See All Builds (823)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc