-----------------
The default URL for PGWUI_Logout looks like
-*https://www.example.com/logout*. The route name is ``logout``.
+*https://www.example.com/logout*.
See the PGWUI_Common documentation for how to configure a different
-route.
+URL.
Complete Documentation
'''Provide a way to configure PGWUI.
'''
+PGWUI_COMPONENT = 'pgwui_logout'
DEFAULT_LOGOUT_ROUTE = '/logout'
def includeme(config):
'''Pyramid configuration for PGWUI_Logout
'''
- config.add_route('logout', DEFAULT_LOGOUT_ROUTE)
+ config.add_route(PGWUI_COMPONENT, DEFAULT_LOGOUT_ROUTE)
config.scan()
-# Copyright (C) 2018, 2019 The Meme Factory, Inc. http://www.meme.com/
+# Copyright (C) 2018, 2019, 2020 The Meme Factory, Inc.
+# http://www.karlpinc.com/
# This file is part of PGWUI_Logout.
#
# <http://www.gnu.org/licenses/>.
#
-# Karl O. Pinc <kop@meme.com>
+# Karl O. Pinc <kop@karlpinc.com>
import pyramid.config
from pyramid.threadlocal import get_current_request
pgwui_logout_init.includeme(pyramid_request_config)
request = get_current_request()
- logout_path = request.route_path('logout')
+ logout_path = request.route_path('pgwui_logout')
assert logout_path == pgwui_logout_init.DEFAULT_LOGOUT_ROUTE