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

zopefoundation / Zope / 6263629025

21 Sep 2023 03:12PM UTC coverage: 82.146% (-0.01%) from 82.159%
6263629025

Pull #1164

github

web-flow
[pre-commit.ci lite] apply automatic fixes
Pull Request #1164: Move all linters to pre-commit.

4353 of 6963 branches covered (0.0%)

Branch coverage included in aggregate %.

487 of 487 new or added lines in 186 files covered. (100.0%)

27394 of 31684 relevant lines covered (86.46%)

0.86 hits per line

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

81.25
/src/Shared/DC/Scripts/BindingsUI.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

14
from AccessControl.class_init import InitializeClass
1✔
15
from AccessControl.Permissions import view_management_screens
1✔
16
from AccessControl.SecurityInfo import ClassSecurityInfo
1✔
17
from App.special_dtml import DTMLFile
1✔
18
from Shared.DC.Scripts.Bindings import Bindings
1✔
19

20

21
class BindingsUI(Bindings):
1✔
22

23
    security = ClassSecurityInfo()
1✔
24

25
    manage_options = (
1✔
26
        {'label': 'Bindings', 'action': 'ZBindingsHTML_editForm'},
27
    )
28

29
    security.declareProtected(view_management_screens,  # NOQA: D001
1✔
30
                              'ZBindingsHTML_editForm')
31
    ZBindingsHTML_editForm = DTMLFile('dtml/scriptBindings', globals())
1✔
32

33
    @security.protected('Change bindings')
1✔
34
    def ZBindingsHTML_editAction(self, REQUEST):
1✔
35
        """Changes binding names."""
36
        self.ZBindings_edit(REQUEST)
×
37
        message = "Bindings changed."
×
38
        return self.manage_main(self, REQUEST, manage_tabs_message=message)
×
39

40

41
InitializeClass(BindingsUI)
1✔
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