Use a stateful object instead of arbitrary assignment of extension on app object

This commit is contained in:
Matt Wright
2012-07-16 19:07:19 -04:00
parent 54da59f003
commit f170cb434c
12 changed files with 66 additions and 38 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ from werkzeug.local import LocalProxy
from flask_security import views
_datastore = LocalProxy(lambda: current_app.security.datastore)
_datastore = LocalProxy(lambda: current_app.extensions['security'].datastore)
def pprint(obj):