This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/main by this push:
new 114217b Fix route references on the tokens page
114217b is described below
commit 114217b4a675de31b83c344f03563d6b18a30261
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Oct 29 22:43:03 2025 +0000
Fix route references on the tokens page
---
atr/shared/tokens.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/atr/shared/tokens.py b/atr/shared/tokens.py
index 97c5b0f..93965b7 100644
--- a/atr/shared/tokens.py
+++ b/atr/shared/tokens.py
@@ -145,7 +145,7 @@ def _as_markup(fragment: Fragment) -> markupsafe.Markup:
def _build_add_form_element(a_form: AddTokenForm) -> markupsafe.Markup:
- elem = htm.form(method="post", action=util.as_url(tokens))[
+ elem = htm.form(method="post", action=util.as_url(post.tokens.tokens))[
_as_markup(a_form.csrf_token),
htm.div(".mb-3")[
a_form.label.label,
@@ -159,7 +159,7 @@ def _build_add_form_element(a_form: AddTokenForm) ->
markupsafe.Markup:
def _build_delete_form_element(token_id: int | None) -> markupsafe.Markup:
d_form = DeleteTokenForm()
d_form.token_id.data = "" if token_id is None else str(token_id)
- elem = htm.form(".mb-0", method="post", action=util.as_url(tokens))[
+ elem = htm.form(".mb-0", method="post",
action=util.as_url(post.tokens.tokens))[
_as_markup(d_form.csrf_token),
_as_markup(d_form.token_id),
d_form.submit(class_="btn btn-sm btn-danger"),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]