Module ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias alias alias Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Dict Str Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str keyword AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad Call NameLoad Str Return Call NameLoad Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword TupleLoad Str Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad Call NameLoad Str Return Call NameLoad Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword TupleLoad Str Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Return Call NameLoad Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str keyword Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad
N/A flask Flask url_for redirect render_template request flask_mongoengine MongoEngine wtforms form fields validators N/A flask_admin admin N/A flask_login login flask_admin.contrib.mongoengine ModelView flask_admin helpers N/A app N/A Flask __name__ N/A N/A N/A app config N/A SECRET_KEY 123456790 N/A N/A N/A app config N/A MONGODB_SETTINGS N/A DB test N/A db N/A MongoEngine N/A N/A N/A db init_app app User N/A N/A db Document N/A N/A login N/A N/A db StringField max_length 80 unique True N/A email N/A N/A db StringField max_length 120 N/A password N/A N/A db StringField max_length 64 is_authenticated N/A N/A self N/A N/A N/A True N/A is_active N/A N/A self N/A N/A N/A True N/A is_anonymous N/A N/A self N/A N/A N/A False N/A get_id N/A N/A self N/A N/A N/A N/A str N/A self id N/A __unicode__ N/A N/A self N/A N/A N/A N/A self login N/A N/A LoginForm N/A N/A form Form N/A N/A login N/A N/A fields TextField validators N/A N/A N/A validators required N/A password N/A N/A fields PasswordField validators N/A N/A N/A validators required validate_login N/A N/A self field N/A N/A N/A user N/A N/A self get_user N/A N/A user None N/A N/A N/A N/A validators ValidationError Invalid user N/A N/A N/A user password N/A N/A self password data N/A N/A N/A N/A validators ValidationError Invalid password N/A get_user N/A N/A self N/A N/A N/A N/A N/A N/A N/A User objects login N/A N/A self login data first N/A N/A RegistrationForm N/A N/A form Form N/A N/A login N/A N/A fields TextField validators N/A N/A N/A validators required N/A email N/A N/A fields TextField N/A password N/A N/A fields PasswordField validators N/A N/A N/A validators required validate_login N/A N/A self field N/A N/A N/A N/A N/A User objects login N/A N/A self login data N/A N/A N/A N/A validators ValidationError Duplicate username N/A N/A init_login N/A N/A N/A N/A N/A login_manager N/A N/A login LoginManager N/A N/A N/A login_manager setup_app app load_user N/A N/A user_id N/A N/A N/A N/A N/A N/A N/A User objects id user_id first N/A N/A login_manager user_loader N/A MyModelView N/A ModelView N/A is_accessible N/A N/A self N/A N/A N/A N/A N/A login current_user is_authenticated N/A N/A MyAdminIndexView N/A N/A admin AdminIndexView N/A is_accessible N/A N/A self N/A N/A N/A N/A N/A login current_user is_authenticated N/A N/A index N/A N/A N/A N/A N/A N/A render_template index.html user N/A login current_user N/A N/A N/A app route / login_view N/A N/A N/A N/A N/A form N/A LoginForm N/A request form N/A N/A N/A N/A request method POST N/A N/A form validate N/A N/A user N/A N/A form get_user N/A N/A N/A login login_user user N/A N/A redirect N/A url_for index N/A N/A render_template form.html form form N/A N/A N/A app route /login/ methods N/A GET POST register_view N/A N/A N/A N/A N/A form N/A RegistrationForm N/A request form N/A N/A N/A N/A request method POST N/A N/A form validate N/A N/A user N/A User N/A N/A N/A form populate_obj user N/A N/A N/A user save N/A N/A N/A login login_user user N/A N/A redirect N/A url_for index N/A N/A render_template form.html form form N/A N/A N/A app route /register/ methods N/A GET POST logout_view N/A N/A N/A N/A N/A N/A N/A login logout_user N/A N/A redirect N/A url_for index N/A N/A N/A app route /logout/ N/A N/A __name__ __main__ N/A N/A N/A init_login N/A admin N/A N/A admin Admin app Example: Auth-Mongo index_view N/A MyAdminIndexView N/A N/A N/A admin add_view N/A MyModelView User N/A N/A N/A app run debug True