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

zopefoundation / zope.authentication / 3775723097

pending completion
3775723097

push

github

Michael Howitz
Fix tox lint run + isort imports.

27 of 41 branches covered (65.85%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 4 files covered. (100.0%)

154 of 188 relevant lines covered (81.91%)

0.82 hits per line

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

0.0
/src/zope/authentication/logout.py
1
##############################################################################
2
#
3
# Copyright (c) 2009 Zope Foundation and Contributors.
4
# All Rights Reserved.
5
#
6
# This software is subject to the provisions of the Zope Public License,
7
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
8
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11
# FOR A PARTICULAR PURPOSE.
12
#
13
##############################################################################
14
"""ILogout implementations
×
15
"""
16
from zope.authentication.interfaces import IAuthentication
×
17
from zope.authentication.interfaces import ILogout
×
18
from zope.authentication.interfaces import ILogoutSupported
×
19
from zope.component import adapter
×
20
from zope.interface import Interface
×
21
from zope.interface import implementer
×
22

23

24
@adapter(IAuthentication)
×
25
@implementer(ILogout)
×
26
class NoLogout(object):
×
27
    """
28
    An adapter for :class:`~.IAuthentication` utilities that don't
29
    implement :class:`~.ILogout`.
30
    """
31

32
    def __init__(self, auth):
×
33
        pass
×
34

35
    def logout(self, request):
×
36
        """Does nothing."""
37

38

39
@adapter(Interface)
×
40
@implementer(ILogoutSupported)
×
41
class LogoutSupported(object):
×
42
    """A class that can be registered as an adapter to flag logout support."""
43

44
    def __init__(self, dummy):
×
45
        pass
×
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