Compare commits

...

6 Commits

Author SHA1 Message Date
Peter Pfeufer
58b3214d5f Merge branch 'translation-fixes' into 'master'
[FIX] Django `makemessages` is ignoring f-strings for translations now

See merge request allianceauth/allianceauth!1772
2025-10-29 00:23:24 +00:00
Ariel Rin
bd6c0fede5 Merge branch 'fix-directories' into 'master'
[HOTFIX] Directories

See merge request allianceauth/allianceauth!1775
2025-10-29 00:23:04 +00:00
Peter Pfeufer
23fe1703c3
[FIX] Directories 2025-10-28 22:33:33 +01:00
Joel Falknau
513b7b88f4
another trixie runner, not available to python 3.8 2025-10-27 20:08:15 +10:00
Joel Falknau
5e3fc5c1cb
i dont understand this behaviour but okay fine 2025-10-27 19:51:29 +10:00
Peter Pfeufer
8c41d9da58
[FIX] Django makemessages is ignoring f-strings for translations now 2025-10-25 11:14:41 +02:00
5 changed files with 21 additions and 16 deletions

View File

@ -113,7 +113,7 @@ test-3.12-core:
test-3.8-all:
<<: *only-default
image: python:3.8-trixie
image: python:3.8-bookworm
script:
- tox -e py38-all
artifacts:

View File

@ -320,8 +320,8 @@ def click_fatlink_view(request, token, fat_hash=None):
messages.warning(
request,
_(
f"Cannot register the fleet participation for {character.character_name}. The character needs to be online."
),
"Cannot register the fleet participation for {character_name}. The character needs to be online."
).format(character_name=character.character_name)
)
return redirect('fatlink:view')

View File

@ -1,3 +1,5 @@
from __future__ import annotations # Still needed for Python 3.8, replaced with better implementations in Py39+
import logging
from typing import TYPE_CHECKING

View File

@ -11,10 +11,10 @@ environment =
[program:beat]
command = %(ENV_AA_COMMAND_CELERY)s
-A %(ENV_AA_PROJECT_NAME)s beat
directory = %(ENV_AA_VENV_DIRECTORY)s
directory = %(ENV_AA_PROJECT_DIRECTORY)s
user = %(ENV_AA_USER)s
stdout_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
stderr_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
stdout_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log
stderr_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log
autostart = true
autorestart = true
startsecs = 10
@ -26,12 +26,12 @@ command = %(ENV_AA_COMMAND_CELERY)s
--pool=threads
--concurrency=5
-n %(program_name)s_%(process_num)02d
directory = %(ENV_AA_VENV_DIRECTORY)s
directory = %(ENV_AA_PROJECT_DIRECTORY)s
user = %(ENV_AA_USER)s
numprocs = 1
process_name = %(program_name)s_%(process_num)02d
stdout_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
stderr_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
stdout_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log
stderr_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log
autostart = true
autorestart = true
startsecs = 10
@ -42,12 +42,12 @@ priority = 998
{% if gunicorn %}
[program:gunicorn]
user = %(ENV_AA_USER)s
directory = %(ENV_AA_VENV_DIRECTORY)s
directory = %(ENV_AA_PROJECT_DIRECTORY)s
command = %(ENV_AA_COMMAND_GUNICORN)s %(ENV_AA_PROJECT_NAME)s.wsgi
--workers=3
--timeout 120
stdout_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
stderr_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
stdout_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log
stderr_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log
autostart = true
autorestart = true
stopsignal = INT
@ -57,10 +57,10 @@ stopsignal = INT
command = %(ENV_AA_COMMAND_MEMMON)s
-p worker_00=256MB
-p gunicorn=256MB
directory = %(ENV_AA_VENV_DIRECTORY)s
directory = %(ENV_AA_PROJECT_DIRECTORY)s
events = TICK_60
stdout_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/memmon.log
stderr_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/memmon.log
stdout_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/memmon.log
stderr_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/memmon.log
[group:{{ project_name }}]
programs = beat,worker{% if gunicorn %},gunicorn{% endif %}

View File

@ -100,7 +100,10 @@ class BaseSetPasswordServiceAccountView(ServicesCRUDMixin, BaseServiceView, Upda
def post(self, request, *args, **kwargs):
result = super().post(request, *args, **kwargs)
if self.get_form().is_valid():
messages.success(request, _(f"Successfully set your {self.service_name} password"))
messages.success(
request,
_("Successfully set your {service_name} password").format(service_name=self.service_name)
)
return result