thunderbird_accounts.mail.views

Functions

home(request)

raise_form_error(request, to_view, error_message)

Puts the error message into the message bag and redirects to a named view.

self_serve(request)

self_serve_account_settings(request)

Account Settings page for Self Serve A user can always access this page even if they don't have a mail account setup.

self_serve_app_password_add(request)

self_serve_app_password_remove(request)

self_serve_app_passwords(request)

App Password page for Self Serve A user can create (if none exists), or delete an App Password which is used to connect to the mail server.

self_serve_common_options(...)

Common return params for self serve pages

self_serve_connection_info(request)

Connection Info page for Self Serve This page displays information relating to the connection settings that a user may need to connect an external mail client.

self_serve_subscription(request)

Subscription page allowing user to select plan tier and do checkout via Paddle.js overlay

self_serve_subscription_success(request)

Subscription page allowing user to select plan tier and do checkout via Paddle.js overlay

sign_up(request)

sign_up_submit(request)

wait_list(request)

thunderbird_accounts.mail.views.raise_form_error(request, to_view: str, error_message: str)[source]

Puts the error message into the message bag and redirects to a named view.

thunderbird_accounts.mail.views.self_serve_common_options(is_account_settings: bool, account: Account)[source]

Common return params for self serve pages

thunderbird_accounts.mail.views.self_serve_account_settings(request: HttpRequest)

Account Settings page for Self Serve A user can always access this page even if they don’t have a mail account setup. This way they can delete their account if they wish, or create an account.

thunderbird_accounts.mail.views.self_serve_connection_info(request: HttpRequest)

Connection Info page for Self Serve This page displays information relating to the connection settings that a user may need to connect an external mail client.

thunderbird_accounts.mail.views.self_serve_subscription(request: HttpRequest)

Subscription page allowing user to select plan tier and do checkout via Paddle.js overlay

This page requires a bit of setup before it can properly display:

  1. Have Paddle’s (Sandbox or Production) API key set, and Paddle’s client-side token setup.

  2. Pull a list of Paddle products and prices via the cli commands (these run on container boot.)

  3. At least one thunderbird_accounts.subscription.models.Plan instance that’s set up with a

    thunderbird_accounts.subscription.models.Product relationship.

thunderbird_accounts.mail.views.self_serve_subscription_success(request: HttpRequest)

Subscription page allowing user to select plan tier and do checkout via Paddle.js overlay

thunderbird_accounts.mail.views.self_serve_app_passwords(request: HttpRequest)

App Password page for Self Serve A user can create (if none exists), or delete an App Password which is used to connect to the mail server.