apis-acdhch-default-settings 2.12.2__py3-none-any.whl → 2.14.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,17 @@ from apis_core.utils.autocomplete import (
7
7
  )
8
8
 
9
9
 
10
+ class E74_GroupExternalAutocomplete(ExternalAutocomplete):
11
+ adapters = [
12
+ LobidAutocompleteAdapter(
13
+ params={
14
+ "filter": "type:CorporateBody",
15
+ "format": "json:preferredName,geographicAreaCode,dateOfEstablishment,broaderTermInstantial",
16
+ }
17
+ ),
18
+ ]
19
+
20
+
10
21
  class E53_PlaceExternalAutocomplete(ExternalAutocomplete):
11
22
  adapters = [
12
23
  TypeSenseAutocompleteAdapter(
@@ -32,6 +32,7 @@ INSTALLED_APPS = [
32
32
  "apis_core.generic",
33
33
  "apis_core.collections",
34
34
  "apis_core.history",
35
+ "apis_core.uris",
35
36
  "apis_core.relations",
36
37
  "apis_core.apis_entities",
37
38
  "apis_core.apis_metainfo",
@@ -119,6 +120,10 @@ MIDDLEWARE = [
119
120
  "crum.CurrentRequestUserMiddleware",
120
121
  # this is used by the apis_core.history module:
121
122
  "simple_history.middleware.HistoryRequestMiddleware",
123
+ # a middleware to add Django messages to response headers
124
+ "apis_core.generic.middleware.HtmxMessageMiddleware",
125
+ # allow auditlog to automatically set the actor for log entries
126
+ "auditlog.middleware.AuditlogMiddleware",
122
127
  ]
123
128
 
124
129
  # https://docs.djangoproject.com/en/stable/ref/settings/#root-urlconf
@@ -244,6 +249,7 @@ if debug := os.environ.get("DJANGO_DEBUG", False):
244
249
  # information to set the repository url in APIS
245
250
  if os.environ.get("GITLAB_ENVIRONMENT_URL"):
246
251
  GIT_REPOSITORY_URL = os.environ.get("GITLAB_ENVIRONMENT_URL")
252
+ GIT_REPOSITORY_URL = GIT_REPOSITORY_URL.replace("git://", "https://")
247
253
 
248
254
 
249
255
  # https://docs.djangoproject.com/en/stable/ref/settings/#login-url
@@ -9,9 +9,9 @@
9
9
  src="https://fundament.acdh.oeaw.ac.at/common-assets/images/acdh_logo.svg" />
10
10
  </a>
11
11
  {% endblock footer-center %}
12
- {% block imprint %}
12
+ {% block footer-right %}
13
13
  {% url "imprint" as imprint_url %}
14
14
  {% if imprint_url %}
15
15
  <a href="{{ imprint_url }}">{% translate "Imprint" %}</a>
16
16
  {% endif %}
17
- {% endblock imprint %}
17
+ {% endblock footer-right %}
@@ -1,4 +1,4 @@
1
- from django.conf import settings
1
+ from django.apps import apps
2
2
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
3
3
  from django.urls import include
4
4
  from django.contrib import admin
@@ -17,7 +17,7 @@ urlpatterns = [
17
17
  ]
18
18
  urlpatterns += staticfiles_urlpatterns()
19
19
 
20
- if "apis_bibsonomy" in settings.INSTALLED_APPS:
20
+ if apps.is_installed("apis_bibsonomy"):
21
21
  urlpatterns.append(
22
22
  path("bibsonomy/", include("apis_bibsonomy.urls", namespace="bibsonomy"))
23
23
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apis-acdhch-default-settings
3
- Version: 2.12.2
3
+ Version: 2.14.0
4
4
  Summary: Default settings for APIS instances at the ACDH-CH
5
5
  Project-URL: source, https://github.com/acdh-oeaw/apis-acdhch-default-settings
6
6
  Project-URL: changelog, https://github.com/acdh-oeaw/apis-acdhch-default-settings/blob/main/CHANGELOG.md
@@ -10,7 +10,7 @@ License-Expression: MIT
10
10
  License-File: LICENSE
11
11
  Requires-Python: >=3.11
12
12
  Requires-Dist: apis-acdhch-django-auditlog>=0.2.1
13
- Requires-Dist: apis-core-rdf>=0.40.0
13
+ Requires-Dist: apis-core-rdf>=0.54.0
14
14
  Requires-Dist: dj-database-url<4.0,>=2.0.0
15
15
  Requires-Dist: django-allow-cidr<0.9,>=0.6
16
16
  Requires-Dist: django-auditlog>=3.1.2
@@ -1,16 +1,16 @@
1
1
  apis_acdhch_default_settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  apis_acdhch_default_settings/ldapauth.py,sha256=P1NDgWG2Pp4JzqoETq3VDC3DtECoEIXWBA3Lzn6CUIA,423
3
- apis_acdhch_default_settings/querysets.py,sha256=9Z3CFp1e55FFvuT05phh6vvchhII_mk0tF_-47vqAsM,1277
4
- apis_acdhch_default_settings/settings.py,sha256=urYBRJkL0SfRoOdNr3FzRcbDr0lOVlWQy4PedCfB0Dc,8867
5
- apis_acdhch_default_settings/urls.py,sha256=Az8dKmYksRsNNTunNxZGh6ODwWd9qksq1E9JQRPe1dc,1081
3
+ apis_acdhch_default_settings/querysets.py,sha256=zu1NLUSV48vITX-2QuPR59zMBPe-lvQwvLl6yTIyFhE,1598
4
+ apis_acdhch_default_settings/settings.py,sha256=dgu_j_50bPxsIxJCArr5AWqcvMLLMt8QYQfzGsBXZP4,9197
5
+ apis_acdhch_default_settings/urls.py,sha256=WZNKn2PhxPlDlQSitK1XRgqxVK8UB9vBfLGr-wC8Atg,1069
6
6
  apis_acdhch_default_settings/views.py,sha256=Xffr0DkaIr81BTj0xlqUMd38C8XGYubL9RJkBxrcAyE,1044
7
7
  apis_acdhch_default_settings/locale/de/LC_MESSAGES/django.mo,sha256=ca6G5CeEdkrD7cVblXxxJNNiSJcP2Hq1AbMnG7usF18,422
8
8
  apis_acdhch_default_settings/locale/de/LC_MESSAGES/django.po,sha256=MkpoGg0Mts7ThF4xJrxzVkOJxBhVGJFi3Wl7yQhZ8rw,714
9
9
  apis_acdhch_default_settings/templates/base.html,sha256=GMvCi3Vci-GhM31ILNN3zQjS3KTnhd8huwus9koFlTE,153
10
10
  apis_acdhch_default_settings/templates/e53_place_from_typesense_autocomplete_result.html,sha256=Tpkes1Q5MDn3A4vHznA2YBG5AJAVA4A4cmxvr0P60jE,589
11
11
  apis_acdhch_default_settings/templates/imprint.html,sha256=8P6TUA0bkhXTQAhCiFZONe_xJhPt8YvNTzNmAWNWZ0k,270
12
- apis_acdhch_default_settings/templates/partials/footer.html,sha256=4rjpKE0NXM5Twe-QEcsh8HR4wQzzWmCuPC7tn_MdxAU,638
13
- apis_acdhch_default_settings-2.12.2.dist-info/METADATA,sha256=8Y0pEWEHGimQWJWPILU5DUm7BbPvNvLpAq47oys4Iao,1482
14
- apis_acdhch_default_settings-2.12.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- apis_acdhch_default_settings-2.12.2.dist-info/licenses/LICENSE,sha256=cMJgiPvvZVbZQcWrf-s1Es1W2b8sxKA0C7HlD4n8_Oo,1146
16
- apis_acdhch_default_settings-2.12.2.dist-info/RECORD,,
12
+ apis_acdhch_default_settings/templates/partials/footer.html,sha256=CgKfS8KA8RAEeccpoinrpF8Zub3IWhOmPl9gv39uKSc,648
13
+ apis_acdhch_default_settings-2.14.0.dist-info/METADATA,sha256=oOoFMnHx7eaoK3MNyx_-_EUtSpjkHEEi9S8ZOWc1EMw,1482
14
+ apis_acdhch_default_settings-2.14.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ apis_acdhch_default_settings-2.14.0.dist-info/licenses/LICENSE,sha256=cMJgiPvvZVbZQcWrf-s1Es1W2b8sxKA0C7HlD4n8_Oo,1146
16
+ apis_acdhch_default_settings-2.14.0.dist-info/RECORD,,