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

zopefoundation / Products.PythonScripts / 40661883388

28 Oct 2026 09:07AM UTC coverage: 86.062% (-0.2%) from 86.279%
40661883388

push

github

dataflake
Deprecate BBB shims for ``allow_class`` and ``allow_module``

84 of 144 branches covered (58.33%)

Branch coverage included in aggregate %.

0 of 3 new or added lines in 1 file covered. (0.0%)

2 existing lines in 1 file now uncovered.

941 of 1047 relevant lines covered (89.88%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Products/PythonScripts/Utility.py
1
##############################################################################
2
#
3
# Copyright (c) 2002 Zope Foundation and Contributors.
4
#
5
# This software is subject to the provisions of the Zope Public License,
6
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
7
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
8
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
9
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
10
# FOR A PARTICULAR PURPOSE
11
#
12
##############################################################################
13
"""Utility module for making simple security assertions for
14
   Python scripts."""
15

UNCOV
16
from AccessControl import allow_class  # noqa
×
UNCOV
17
from AccessControl import allow_module  # noqa
×
NEW
18
from zope.deprecation import deprecated
×
19

20

NEW
21
deprecated('allow_class',
×
22
           'Please import from `AccessControl.SecurityInfo`.'
23
           'This backwards-compatibility shim will be removed in version 5.5.')
24

25

NEW
26
deprecated('allow_module',
×
27
           'Please import from `AccessControl.SecurityInfo`.'
28
           'This backwards-compatibility shim will be removed in version 5.5.')
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc