Initial idea for specifying a user account mixin for user model

This commit is contained in:
Matt Wright
2012-03-27 14:27:12 -04:00
parent dd6ba0995d
commit 5a7f4dff47
5 changed files with 17 additions and 5 deletions
+2 -1
View File
@@ -21,8 +21,9 @@ class UserDatastore(object):
:param db: An instance of a configured databse manager from a Flask
extension such as Flask-SQLAlchemy or Flask-MongoEngine"""
def __init__(self, db):
def __init__(self, db, user_account_mixin=None):
self.db = db
self.user_account_mixin = user_account_mixin or object
def get_models(self):
"""Returns configured `User` and `Role` models for the datastore