apis-acdhch-default-settings 2.3.1__py3-none-any.whl → 2.5.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.
@@ -0,0 +1,42 @@
1
+ import os
2
+
3
+ from apis_core.utils.autocomplete import (
4
+ ExternalAutocomplete,
5
+ TypeSenseAutocompleteAdapter,
6
+ LobidAutocompleteAdapter,
7
+ )
8
+
9
+
10
+ class E53_PlaceExternalAutocomplete(ExternalAutocomplete):
11
+ adapters = [
12
+ TypeSenseAutocompleteAdapter(
13
+ collections=[
14
+ "prosnet-wikidata-place-index",
15
+ "prosnet-geonames-place-index",
16
+ ],
17
+ token=os.getenv("TYPESENSE_TOKEN", None),
18
+ server=os.getenv("TYPESENSE_SERVER", None),
19
+ ),
20
+ LobidAutocompleteAdapter(
21
+ params={
22
+ "filter": "type:PlaceOrGeographicName",
23
+ "format": "json:preferredName",
24
+ }
25
+ ),
26
+ ]
27
+
28
+
29
+ class E21_PersonExternalAutocomplete(ExternalAutocomplete):
30
+ adapters = [
31
+ TypeSenseAutocompleteAdapter(
32
+ collections="prosnet-wikidata-person-index",
33
+ token=os.getenv("TYPESENSE_TOKEN", None),
34
+ server=os.getenv("TYPESENSE_SERVER", None),
35
+ ),
36
+ LobidAutocompleteAdapter(
37
+ params={
38
+ "filter": "type:Person",
39
+ "format": "json:preferredName,professionOrOccupation",
40
+ }
41
+ ),
42
+ ]
@@ -29,8 +29,6 @@ SECRET_KEY = os.environ.get("SECRET_KEY", get_random_secret_key())
29
29
  BASE_DIR = Path(__file__).resolve().parent.parent
30
30
 
31
31
  # Application definition
32
- # put apis_override_select2js at the beginning of the list
33
- # to make its static files weigh more than from the other apps
34
32
  INSTALLED_APPS = [
35
33
  "dal",
36
34
  "dal_select2",
@@ -190,6 +188,7 @@ APIS_NEXT_PREV = True
190
188
  APIS_LIST_VIEWS_ALLOWED = False
191
189
  APIS_DETAIL_VIEWS_ALLOWED = False
192
190
  SHARED_URL = "https://shared.acdh.oeaw.ac.at/"
191
+ ADDITIONAL_MODULE_LOOKUP_PATHS = ["apis_acdhch_default_settings"]
193
192
 
194
193
  # django-allow-cidr settings
195
194
  # https://github.com/mozmeao/django-allow-cidr
@@ -1,5 +1,11 @@
1
1
  {% extends "base.html" %}
2
2
  {% load i18n %}
3
+
4
+ {% block meta %}
5
+ {{ block.super }}
6
+ <meta name="monitoring" content="Icinga Check">
7
+ {% endblock meta %}
8
+
3
9
  {% block imprint %}
4
10
  {% url "imprint" as imprint_url %}
5
11
  {% if imprint_url %}<a href="{{ imprint_url }}">{% translate "Imprint" %}</a>{% endif %}
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.4
2
+ Name: apis-acdhch-default-settings
3
+ Version: 2.5.0
4
+ Summary: Default settings for APIS instances at the ACDH-CH
5
+ Project-URL: source, https://github.com/acdh-oeaw/apis-acdhch-default-settings
6
+ Project-URL: changelog, https://github.com/acdh-oeaw/apis-acdhch-default-settings/blob/main/CHANGELOG.md
7
+ Project-URL: issues, https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues
8
+ Author-email: Birger Schacht <birger.schacht@oeaw.ac.at>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Requires-Python: >=3.11
12
+ Requires-Dist: dj-database-url<3.0,>=2.0.0
13
+ Requires-Dist: django-allow-cidr<0.8,>=0.6
14
+ Requires-Dist: django-auth-ldap<5.0,>=4.6.0
15
+ Requires-Dist: django-csp<4.0,>=3.7
16
+ Requires-Dist: django-removals<=2.0,>=1.0.5
17
+ Requires-Dist: opentelemetry-distro
18
+ Requires-Dist: opentelemetry-exporter-otlp
19
+ Requires-Dist: opentelemetry-instrumentation-asgi
20
+ Requires-Dist: opentelemetry-instrumentation-django
21
+ Requires-Dist: opentelemetry-instrumentation-logging
22
+ Requires-Dist: opentelemetry-instrumentation-psycopg2
23
+ Requires-Dist: opentelemetry-instrumentation-wsgi
24
+ Requires-Dist: sentry-sdk<2.0,>=1.26.0
25
+ Requires-Dist: whitenoise<7.0,>=5.2
26
+ Description-Content-Type: text/markdown
27
+
28
+ # apis_acdhch_default_settings
29
+
30
+ Default settings for [APIS](https://github.com/acdh-oeaw/apis-core-rdf/) instances hosted at the ACDH-CH at the OEAW.
@@ -0,0 +1,12 @@
1
+ apis_acdhch_default_settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ apis_acdhch_default_settings/ldapauth.py,sha256=P1NDgWG2Pp4JzqoETq3VDC3DtECoEIXWBA3Lzn6CUIA,423
3
+ apis_acdhch_default_settings/querysets.py,sha256=3sqDRupDrDIxE2Oyf-7dC6BfU6p8pROzjN5KZPS3AQE,1203
4
+ apis_acdhch_default_settings/settings.py,sha256=OS6eu5rqgMh68kwDEc6B9FFcQPeF7cOc9jsQoiuMjCo,9243
5
+ apis_acdhch_default_settings/urls.py,sha256=QOkc8QD0rEj0ftcJWJqVyO9qFAgVXrj1rl9R9jARSqc,1017
6
+ apis_acdhch_default_settings/views.py,sha256=4fwNnkjH-X4T2zojGTFndxvznOl_3JavHbmpDLD6wOA,1022
7
+ apis_acdhch_default_settings/templates/base.html,sha256=9W2T6xxGbNHdfhyjaKyiUBPi8n1hAyOC9ktCWqJNX4k,322
8
+ apis_acdhch_default_settings/templates/imprint.html,sha256=juOqq6yzT9FMhjPjhbofDPZxRNO2fhOLlS478reFjE0,254
9
+ apis_acdhch_default_settings-2.5.0.dist-info/METADATA,sha256=Xs2aMbH18HRpvZx6d1aRsxVVFg3G1zSs6j-KIeTKK2c,1343
10
+ apis_acdhch_default_settings-2.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ apis_acdhch_default_settings-2.5.0.dist-info/licenses/LICENSE,sha256=cMJgiPvvZVbZQcWrf-s1Es1W2b8sxKA0C7HlD4n8_Oo,1146
12
+ apis_acdhch_default_settings-2.5.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.1
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,33 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: apis-acdhch-default-settings
3
- Version: 2.3.1
4
- Summary: Default settings for APIS instances at the ACDH-CH
5
- License: MIT
6
- Author: Birger Schacht
7
- Author-email: birger.schacht@oeaw.ac.at
8
- Requires-Python: >=3.11,<4.0
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Classifier: Programming Language :: Python :: 3.13
14
- Requires-Dist: dj-database-url (>=2.0.0,<3.0.0)
15
- Requires-Dist: django-allow-cidr (>=0.6,<0.8)
16
- Requires-Dist: django-auth-ldap (>=4.6.0,<5.0.0)
17
- Requires-Dist: django-csp (>=3.7,<4.0)
18
- Requires-Dist: django-removals (>=1.0.5,<2.0.0)
19
- Requires-Dist: opentelemetry-distro
20
- Requires-Dist: opentelemetry-exporter-otlp
21
- Requires-Dist: opentelemetry-instrumentation-asgi
22
- Requires-Dist: opentelemetry-instrumentation-django
23
- Requires-Dist: opentelemetry-instrumentation-logging
24
- Requires-Dist: opentelemetry-instrumentation-psycopg2
25
- Requires-Dist: opentelemetry-instrumentation-wsgi
26
- Requires-Dist: sentry-sdk (>=1.26.0,<2.0.0)
27
- Requires-Dist: whitenoise (>=5.2,<7.0)
28
- Description-Content-Type: text/markdown
29
-
30
- # apis_acdhch_default_settings
31
-
32
- Default settings for [APIS](https://github.com/acdh-oeaw/apis-core-rdf/) instances hosted at the ACDH-CH at the OEAW.
33
-
@@ -1,11 +0,0 @@
1
- apis_acdhch_default_settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- apis_acdhch_default_settings/ldapauth.py,sha256=P1NDgWG2Pp4JzqoETq3VDC3DtECoEIXWBA3Lzn6CUIA,423
3
- apis_acdhch_default_settings/settings.py,sha256=kPWYhru8FkiKB4tLseczn-xyZk4uLOh3t6E1v0MDpkI,9299
4
- apis_acdhch_default_settings/templates/base.html,sha256=c3QhbTzJLzCii-Ck5x0wftHx_Y0aFhPfJUhUVknz_Ks,217
5
- apis_acdhch_default_settings/templates/imprint.html,sha256=juOqq6yzT9FMhjPjhbofDPZxRNO2fhOLlS478reFjE0,254
6
- apis_acdhch_default_settings/urls.py,sha256=QOkc8QD0rEj0ftcJWJqVyO9qFAgVXrj1rl9R9jARSqc,1017
7
- apis_acdhch_default_settings/views.py,sha256=4fwNnkjH-X4T2zojGTFndxvznOl_3JavHbmpDLD6wOA,1022
8
- apis_acdhch_default_settings-2.3.1.dist-info/LICENSE,sha256=cMJgiPvvZVbZQcWrf-s1Es1W2b8sxKA0C7HlD4n8_Oo,1146
9
- apis_acdhch_default_settings-2.3.1.dist-info/METADATA,sha256=8iooUgi4u0MPIeyDTdGRziyLTVEsZpgI-XPRtCYOYDA,1332
10
- apis_acdhch_default_settings-2.3.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
11
- apis_acdhch_default_settings-2.3.1.dist-info/RECORD,,