1
##############################################################################
3
# Copyright (c) 2009 Zope Corporation and Contributors.
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.
13
##############################################################################
14
"""ILogout implementations
18
from zope.component import adapts
19
from zope.interface import implements, Interface
21
from zope.authentication.interfaces import IAuthentication
22
from zope.authentication.interfaces import ILogout, ILogoutSupported
25
class NoLogout(object):
26
"""An adapter for IAuthentication utilities that don't implement ILogout."""
28
adapts(IAuthentication)
31
def __init__(self, auth):
34
def logout(self, request):
38
class LogoutSupported(object):
39
"""A class that can be registered as an adapter to flag logout support."""
42
implements(ILogoutSupported)
44
def __init__(self, dummy):