Change init_menu() to establish_settings()
authorKarl O. Pinc <kop@karlpinc.com>
Wed, 14 Apr 2021 21:53:21 +0000 (16:53 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Thu, 15 Apr 2021 21:53:38 +0000 (16:53 -0500)
src/pgwui_logout/pgwui_logout.py

index ef06bd3236d45aabb5a059c68308a3eafa9069e3..912357c16f04d31f900012de5569220173baff04 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2018 The Meme Factory, Inc.  http://www.meme.com/
+# Copyright (C) 2018, 2021 The Meme Factory, Inc.  http://www.karlpinc.com/
 
 # This file is part of PGWUI_Logout.
 #
@@ -27,7 +27,7 @@ DEFAULT_LOGOUT_ROUTE = '/logout'
 DEFAULT_LOGOUT_MENU_LABEL = 'logout -- Logout from PGWUI programs'
 
 
-def init_menu(config):
+def establish_settings(config):
     '''Add default menu information into settings when they are not present
     '''
     settings = config.get_settings()
@@ -40,6 +40,6 @@ def init_menu(config):
 def includeme(config):
     '''Pyramid configuration for PGWUI_Logout
     '''
-    init_menu(config)
+    establish_settings(config)
     config.add_route(PGWUI_COMPONENT, DEFAULT_LOGOUT_ROUTE)
     config.scan()