Add default/global context processor. Fixes #306

This commit is contained in:
Matt Wright
2014-09-17 11:27:44 -04:00
parent 3d7b97ac31
commit 679cee7969
10 changed files with 22 additions and 8 deletions
+3
View File
@@ -350,6 +350,9 @@ class _SecurityState(object):
rv.update(fn())
return rv
def context_processor(self, fn):
self._add_ctx_processor(None, fn)
def forgot_password_context_processor(self, fn):
self._add_ctx_processor('forgot_password', fn)