-
Notifications
You must be signed in to change notification settings - Fork 292
/
__init__.py
36 lines (28 loc) · 1.09 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
__title__ = 'Flask-User'
__description__ = 'Customizable User Authentication, User Management, and more.'
__version__ = '1.0.2.3'
__url__ = 'https://github.com/lingthio/Flask-User'
__author__ = 'Ling Thio'
__author_email__= 'ling.thio@gmail.com'
__maintainer__ = 'Ling Thio'
__license__ = 'MIT'
__copyright__ = '(c) 2013 Ling Thio'
# Define Flask-User Exceptions early on
class ConfigError(Exception):
pass
class EmailError(Exception):
pass
# Export Flask-Login's current user
from flask_login import current_user # pass through Flask-Login's current_user
# Export v0.6 legacy classes DbAdapter and SQLAlchemyAdapter
# To display an Incompatibility error message the v0.6 API is used on a v1.0+ install
from .legacy_error import DbAdapter, SQLAlchemyAdapter
from .user_mixin import UserMixin
from .user_manager import UserManager
from .email_manager import EmailManager
from .password_manager import PasswordManager
from .token_manager import TokenManager
# Export Flask-User decorators
from .decorators import *
# Export Flask-User signals
from .signals import *