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
@@ -18,7 +18,7 @@ from .exceptions import UserNotFoundError
# Convenient reference
_datastore = LocalProxy(lambda: app.security.datastore)
_datastore = LocalProxy(lambda: app.extensions['security'].datastore)
def valid_user_email(form, field):