diff --git a/canaille/backends/sql/configuration.py b/canaille/backends/sql/configuration.py index 8581d7ab..8e137539 100644 --- a/canaille/backends/sql/configuration.py +++ b/canaille/backends/sql/configuration.py @@ -9,7 +9,9 @@ class SQLSettings(BaseModel): DATABASE_URI: str """The SQL server URI. - For example:: + For example: + + ..code-block:: toml DATABASE_URI = "postgresql://user:password@localhost/database_name" """ diff --git a/canaille/core/configuration.py b/canaille/core/configuration.py index 1791bfd3..4fdd6feb 100644 --- a/canaille/core/configuration.py +++ b/canaille/core/configuration.py @@ -81,7 +81,9 @@ class ACLSettings(BaseModel): PERMISSIONS: list[Permission] = [Permission.EDIT_SELF, Permission.USE_OIDC] """A list of :class:`Permission` users in the access control will be able - to manage. For example:: + to manage. For example: + + ..code-block:: toml PERMISSIONS = [ "manage_users", @@ -89,7 +91,8 @@ class ACLSettings(BaseModel): "manage_oidc", "delete_account", "impersonate_users", - ]""" + ] + """ READ: list[str] = [ "user_name", @@ -265,7 +268,9 @@ class CoreSettings(BaseModel): - If this is a :class:`str`, it is expected to be a file path that will be passed to :func:`logging.config.fileConfig`. - For example:: + For example: + + ..code-block:: toml [CANAILLE.LOGGING] version = 1 @@ -288,7 +293,9 @@ class CoreSettings(BaseModel): ACL: dict[str, ACLSettings] | None = {"DEFAULT": ACLSettings()} """Mapping of permission groups. See :class:`ACLSettings` for more details. - The ACL name can be freely chosen. For example:: + The ACL name can be freely chosen. For example: + + ..code-block:: toml [CANAILLE.ACL.DEFAULT] PERMISSIONS = ["edit_self", "use_oidc"] diff --git a/canaille/translations/messages.pot b/canaille/translations/messages.pot index 0c6e73e9..bbc0572e 100644 --- a/canaille/translations/messages.pot +++ b/canaille/translations/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-12-08 11:27+0100\n" +"POT-Creation-Date: 2024-12-08 11:32+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -806,8 +806,8 @@ msgid "" msgstr "" #: canaille/core/templates/invite.html:74 -#: canaille/oidc/templates/token_view.html:123 -#: canaille/oidc/templates/token_view.html:134 +#: canaille/oidc/templates/token_view.html:130 +#: canaille/oidc/templates/token_view.html:141 msgid "Copy" msgstr "" @@ -1822,31 +1822,35 @@ msgstr "" msgid "Expiration date" msgstr "" -#: canaille/oidc/templates/token_view.html:99 +#: canaille/oidc/templates/token_view.html:100 +msgid "This token has expired." +msgstr "" + +#: canaille/oidc/templates/token_view.html:106 msgid "Revokation date" msgstr "" -#: canaille/oidc/templates/token_view.html:105 +#: canaille/oidc/templates/token_view.html:112 msgid "Revoke token" msgstr "" -#: canaille/oidc/templates/token_view.html:108 +#: canaille/oidc/templates/token_view.html:115 msgid "This token has not been revoked" msgstr "" -#: canaille/oidc/templates/token_view.html:114 +#: canaille/oidc/templates/token_view.html:121 msgid "Token type" msgstr "" -#: canaille/oidc/templates/token_view.html:118 +#: canaille/oidc/templates/token_view.html:125 msgid "Access token" msgstr "" -#: canaille/oidc/templates/token_view.html:129 +#: canaille/oidc/templates/token_view.html:136 msgid "Refresh token" msgstr "" -#: canaille/oidc/templates/token_view.html:131 +#: canaille/oidc/templates/token_view.html:138 msgid "No refresh token" msgstr ""