From 76c91a4ca472c1351cf5cf12f85c041b30dda57f Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Tue, 26 Mar 2024 15:02:13 +1000 Subject: [PATCH] fix issue with pyramid.session paramter change Signed-off-by: Ryan Lerch --- tahrir/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tahrir/__init__.py b/tahrir/__init__.py index 6b1f5f7..04278fc 100644 --- a/tahrir/__init__.py +++ b/tahrir/__init__.py @@ -89,7 +89,7 @@ def get_db(request): # Load secret stuff from secret.ini. try: default_path = os.path.abspath("secret.ini") - secret_path = settings.get('secret_config_path', default_path) + secret_path = settings.get('tahrir.secret_config_path', default_path) # TODO: There is a better way to log this message than print. print("Reading secrets from %r" % secret_path) parser = ConfigParser() @@ -111,8 +111,8 @@ def get_db(request): authz_policy = ACLAuthorizationPolicy() session_factory = SignedCookieSessionFactory( secret=settings['session.secret'], - cookie_secure=asbool(settings.get('tahrir.secure_cookies', True)), - cookie_httponly=asbool(settings.get('tahrir.httponly_cookies', True)), + secure=asbool(settings.get('tahrir.secure_cookies', True)), + httponly=asbool(settings.get('tahrir.httponly_cookies', True)), ) # Configure our cache that we instantiated earlier.