Module Import alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Call AttributeLoad NameLoad attr Str keyword Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad keyword Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Str decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler body Pass If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr Str attr body Assign NameStore Call NameLoad keyword Str keyword Str keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr Str attr body Assign NameStore Call NameLoad keyword Str keyword Str keyword NameLoad keyword Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str NameLoad NameLoad FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str Call NameLoad Str ListLoad Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Num keyword NameLoad
N/A N/A os N/A datetime flask Flask render_template_string request flask.ext.babel Babel flask.ext.mail Mail flask.ext.sqlalchemy SQLAlchemy flask.ext.user login_required SQLAlchemyAdapter UserManager UserMixin flask.ext.user roles_required confirm_email_required N/A app N/A Flask __name__ N/A db N/A SQLAlchemy app User N/A N/A db Model UserMixin N/A N/A id N/A N/A db Column N/A db Integer primary_key True N/A username N/A N/A db Column N/A N/A db String 50 nullable True unique True N/A password N/A N/A db Column N/A N/A db String 255 nullable False server_default N/A reset_password_token N/A N/A db Column N/A N/A db String 100 nullable False server_default N/A email N/A N/A db Column N/A N/A db String 255 nullable True unique True N/A confirmed_at N/A N/A db Column N/A N/A db DateTime N/A active N/A N/A db Column is_active N/A N/A db Boolean nullable False server_default 0 N/A first_name N/A N/A db Column N/A N/A db String 100 nullable False server_default N/A last_name N/A N/A db Column N/A N/A db String 100 nullable False server_default N/A roles N/A N/A db relationship Role secondary user_roles backref N/A N/A db backref users lazy dynamic N/A UserEmail N/A N/A db Model N/A N/A id N/A N/A db Column N/A db Integer primary_key True N/A user_id N/A N/A db Column N/A db Integer N/A N/A db ForeignKey user.id N/A email N/A N/A db Column N/A N/A db String 255 nullable True unique True N/A confirmed_at N/A N/A db Column N/A N/A db DateTime N/A is_primary N/A N/A db Column N/A N/A db Boolean nullable False default False N/A user N/A N/A db relationship User uselist False N/A UserInvitation N/A N/A db Model N/A N/A __tablename__ user_invite N/A id N/A N/A db Column N/A db Integer primary_key True N/A email N/A N/A db Column N/A N/A db String 255 nullable False N/A invited_by_user_id N/A N/A db Column N/A db Integer N/A N/A db ForeignKey user.id N/A token N/A N/A db Column N/A N/A db String 100 nullable False server_default N/A Role N/A N/A db Model N/A N/A id N/A N/A db Column N/A N/A db Integer primary_key True N/A name N/A N/A db Column N/A N/A db String 50 unique True N/A UserRoles N/A N/A db Model N/A N/A id N/A N/A db Column N/A N/A db Integer primary_key True N/A user_id N/A N/A db Column N/A N/A db Integer N/A N/A db ForeignKey user.id ondelete CASCADE N/A role_id N/A N/A db Column N/A N/A db Integer N/A N/A db ForeignKey role.id ondelete CASCADE N/A ConfigClass N/A object N/A N/A SECRET_KEY N/A N/A os getenv SECRET_KEY THIS IS AN INSECURE SECRET N/A SQLALCHEMY_DATABASE_URI N/A N/A os getenv DATABASE_URL sqlite:///tst_app.sqlite N/A CSRF_ENABLED True N/A MAIL_USERNAME N/A N/A os getenv MAIL_USERNAME email@example.com N/A MAIL_PASSWORD N/A N/A os getenv MAIL_PASSWORD password N/A MAIL_DEFAULT_SENDER N/A N/A os getenv MAIL_DEFAULT_SENDER "MyApp" <noreply@example.com> N/A MAIL_SERVER N/A N/A os getenv MAIL_SERVER smtp.gmail.com N/A MAIL_PORT N/A int N/A N/A os getenv MAIL_PORT 465 N/A MAIL_USE_SSL N/A N/A os getenv MAIL_USE_SSL True N/A USER_APP_NAME AppName N/A USER_ENABLE_USERNAME True N/A USER_ENABLE_EMAIL True N/A USER_ENABLE_CONFIRM_EMAIL True N/A USER_ENABLE_INVITATION True N/A init_app N/A N/A app test_config N/A None N/A N/A N/A N/A N/A app config from_object N/A __name__ .ConfigClass N/A N/A N/A N/A N/A N/A app config from_object local_settings N/A N/A N/A N/A N/A test_config N/A N/A N/A N/A N/A app config update test_config N/A babel N/A Babel app N/A mail N/A Mail app N/A N/A N/A db create_all N/A db_adapter N/A SQLAlchemyAdapter db User UserInvitationClass UserInvitation N/A user_manager N/A UserManager db_adapter app N/A N/A N/A N/A N/A N/A N/A User query filter N/A N/A User username member first N/A N/A user N/A User username member email member@example.com active True password N/A N/A user_manager hash_password Password1 confirmed_at N/A N/A N/A datetime datetime utcnow N/A N/A N/A N/A db session add user N/A N/A N/A N/A db session commit N/A N/A N/A N/A N/A N/A N/A User query filter N/A N/A User username user007 first N/A N/A user1 N/A User username user007 email user007@example.com active True password N/A N/A user_manager hash_password Password1 N/A N/A N/A N/A user1 roles append N/A Role name secret N/A N/A N/A N/A user1 roles append N/A Role name agent N/A N/A N/A N/A db session add user1 N/A N/A N/A N/A db session commit home_page N/A N/A N/A N/A N/A N/A render_template_string 
            {% extends "base.html" %}
            {% block content %}
            <h2>{%trans%}Home Page{%endtrans%}</h2>
            <p><a href="{{ url_for('user.login') }}">{%trans%}Sign in{%endtrans%}</a></p>
            {% endblock %}
             N/A N/A N/A app route / user_profile_page N/A N/A N/A N/A N/A N/A render_template_string 
            {% extends "base.html" %}
            {% block content %}
            <h2>{%trans%}Profile Page{%endtrans%}</h2>
            <p> {%trans%}Hello{%endtrans%}
                {{ current_user.username or current_user.email }},</p>
            <p> <a href="{{ url_for('user.change_username') }}">
                {%trans%}Change username{%endtrans%}</a></p>
            <p> <a href="{{ url_for('user.change_password') }}">
                {%trans%}Change password{%endtrans%}</a></p>
            <p> <a href="{{ url_for('user.invite') }}">
                {%trans%}Invite User{%endtrans%}</a></p>
            <p> <a href="{{ url_for('user.logout') }}?next={{ url_for('user.login') }}">
                {%trans%}Sign out{%endtrans%}</a></p>
            {% endblock %}
             N/A N/A N/A app route /user/profile login_required confirm_email_required special_page N/A N/A N/A N/A N/A N/A render_template_string 
            {% extends "base.html" %}
            {% block content %}
            <h2>{%trans%}Special Page{%endtrans%}</h2>
            {% endblock %}
             N/A N/A N/A app route /special N/A roles_required secret N/A sauce agent N/A N/A app db db N/A N/A app UserEmailClass UserEmail N/A app N/A N/A N/A __name__ __main__ N/A N/A app N/A create_app N/A N/A N/A app run host 0.0.0.0 port 5555 debug True