Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions .github/workflows/trivy.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ wheel-devel: clean
fi; \
echo "Version $$BUILD_VER"; \
poetry install --no-root --with devel; \
poetry run python3 -m build -w
poetry run python3.12 -m build -w
mv -f dist/*.whl .


Expand Down
2 changes: 1 addition & 1 deletion docker/collectstatic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

. /opt/poem/bin/activate
rm -rf $VIRTUAL_ENV/usr/share/poem/static/reactbundle/* ; \
python $VIRTUAL_ENV/lib/python3.9/site-packages/Poem/manage.py collectstatic --noinput ; \
python $VIRTUAL_ENV/lib/python3.12/site-packages/Poem/manage.py collectstatic --noinput ; \
rm -rf $VIRTUAL_ENV/usr/share/poem/static/admin
9 changes: 9 additions & 0 deletions etc/poem.auto.conf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[GENERAL_TENANTNAME]
# Extra tenant GENERAL options may be defined here.

[SUPERUSER_TENANTNAME]
# Extra tenant SUPERUSER options may be defined here.

[SECURITY]
# AllowedHosts values are appended to SECURITY.AllowedHosts from poem.conf.
AllowedHosts =
7 changes: 3 additions & 4 deletions poem/Poem/api/internal_views/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import configparser
from configparser import NoOptionError, NoSectionError

from Poem.api import serializers
from Poem.api.internal_views.users import get_all_groups, get_groups_for_user
Expand Down Expand Up @@ -110,8 +110,7 @@ def get(self, request, istenant):


def get_use_service_titles(tenant):
config = configparser.ConfigParser()
config.read(filenames=settings.CONFIG_FILE)
config = settings.GET_POEM_CONFIG(settings.CONFIG_FILE)

try:
if config.get(
Expand All @@ -122,7 +121,7 @@ def get_use_service_titles(tenant):
else:
return False

except configparser.NoOptionError:
except (NoOptionError, NoSectionError):
return False


Expand Down
Loading