thunderbird_accounts.core.utils
Functions
|
Prepend a path with the correct public facing url, if the path is already an absolute url it returns itself unmodified. |
Return a list of feature flags that the server has enabled via env or db. |
|
|
Parse user agent string and return separate browser and OS information. |
Classes
|
A json-based serializer for our shared redis cache. |
- thunderbird_accounts.core.utils.get_feature_flags() dict[source]
Return a list of feature flags that the server has enabled via env or db. This is for the frontend, but the frontend might have its own list of features so we prefix everything with be_ (for backend) to avoid collision.
- thunderbird_accounts.core.utils.get_absolute_url(path: str) str[source]
Prepend a path with the correct public facing url, if the path is already an absolute url it returns itself unmodified.