From 9f9156f0bcf486b188b4405d371c60d822d82f35 Mon Sep 17 00:00:00 2001 From: Robert Wikman Date: Sat, 17 Mar 2018 01:57:10 +0100 Subject: [PATCH 1/3] Don't return snow slice if no app context --- flask_snow/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_snow/__init__.py b/flask_snow/__init__.py index 3ccc181..ae26b9c 100644 --- a/flask_snow/__init__.py +++ b/flask_snow/__init__.py @@ -183,4 +183,4 @@ def connection(self): 'resources': {} } - return ctx.snow + return ctx.snow From cfc81bc1a5ff0e2f4378f5af368b86ded0c1ab5a Mon Sep 17 00:00:00 2001 From: Robert Wikman Date: Sat, 17 Mar 2018 01:58:45 +0100 Subject: [PATCH 2/3] Set client token in example decorator --- examples/oauth_api_server/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/oauth_api_server/server.py b/examples/oauth_api_server/server.py index b58218b..d5190e5 100644 --- a/examples/oauth_api_server/server.py +++ b/examples/oauth_api_server/server.py @@ -37,7 +37,7 @@ def inner(*args, **kwargs): client = ps.connection['client'] if session['token'] and hasattr(client, 'token') and client.token is None: - ps.set_token(session['token']) + client.set_token(session['token']) try: return f(*args, **kwargs) From 5dca426596b9b357162b819b1133a4c01127de28 Mon Sep 17 00:00:00 2001 From: Robert Wikman Date: Sat, 17 Mar 2018 01:59:06 +0100 Subject: [PATCH 3/3] Bumped --- flask_snow/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_snow/__init__.py b/flask_snow/__init__.py index ae26b9c..af953c2 100644 --- a/flask_snow/__init__.py +++ b/flask_snow/__init__.py @@ -12,7 +12,7 @@ """ __author__ = "Robert Wikman " -__version__ = "0.2.5" +__version__ = "0.2.6" import warnings