aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/after.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/utility/after.py')
-rw-r--r--wqflask/utility/after.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/wqflask/utility/after.py b/wqflask/utility/after.py
deleted file mode 100644
index 2b560e48..00000000
--- a/wqflask/utility/after.py
+++ /dev/null
@@ -1,15 +0,0 @@
-"""
-See: http://flask.pocoo.org/docs/patterns/deferredcallbacks/#deferred-callbacks
-
-"""
-
-from flask import g
-
-from wqflask import app
-
-
-def after_this_request(f):
- if not hasattr(g, 'after_request_callbacks'):
- g.after_request_callbacks = []
- g.after_request_callbacks.append(f)
- return f