c2cwsgiutils 6.2.0.dev2__py3-none-any.whl → 6.2.0.dev4__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.
- c2cwsgiutils/index.py +7 -7
- {c2cwsgiutils-6.2.0.dev2.dist-info → c2cwsgiutils-6.2.0.dev4.dist-info}/METADATA +1 -1
- {c2cwsgiutils-6.2.0.dev2.dist-info → c2cwsgiutils-6.2.0.dev4.dist-info}/RECORD +6 -6
- {c2cwsgiutils-6.2.0.dev2.dist-info → c2cwsgiutils-6.2.0.dev4.dist-info}/LICENSE +0 -0
- {c2cwsgiutils-6.2.0.dev2.dist-info → c2cwsgiutils-6.2.0.dev4.dist-info}/WHEEL +0 -0
- {c2cwsgiutils-6.2.0.dev2.dist-info → c2cwsgiutils-6.2.0.dev4.dist-info}/entry_points.txt +0 -0
c2cwsgiutils/index.py
CHANGED
@@ -44,9 +44,9 @@ from c2cwsgiutils.config_utils import env_or_settings
|
|
44
44
|
|
45
45
|
_LOG = logging.getLogger(__name__)
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
additional_title: Optional[str] = None
|
48
|
+
additional_noauth: list[str] = []
|
49
|
+
additional_auth: list[str] = []
|
50
50
|
_ELEM_ID = 0
|
51
51
|
|
52
52
|
|
@@ -159,15 +159,15 @@ def _index(request: pyramid.request.Request) -> dict[str, str]:
|
|
159
159
|
body += _logging(request)
|
160
160
|
body += _profiler(request)
|
161
161
|
|
162
|
-
if
|
163
|
-
body +=
|
162
|
+
if additional_title is not None and (has_access or additional_noauth):
|
163
|
+
body += additional_title
|
164
164
|
body += "\n"
|
165
165
|
|
166
166
|
if has_access:
|
167
|
-
body += "\n".join(
|
167
|
+
body += "\n".join(additional_auth)
|
168
168
|
body += "\n"
|
169
169
|
|
170
|
-
body += "\n".join(
|
170
|
+
body += "\n".join(additional_noauth)
|
171
171
|
|
172
172
|
settings = request.registry.settings
|
173
173
|
auth_type_ = auth_type(settings)
|
@@ -24,7 +24,7 @@ c2cwsgiutils/debug/_views.py,sha256=53BflHhtLwtgS2uFJYg2jUEZaFhCI-iYWfSxu5B2swc,
|
|
24
24
|
c2cwsgiutils/debug/utils.py,sha256=sIKZHQ8empzxE2OI3h7Uce8cvv4O7AD1y_VYeZfLVCA,2320
|
25
25
|
c2cwsgiutils/errors.py,sha256=-hWLQ1qDlh9kn06-33U2c39BbOxuCvJIkBkdxriE5mo,6644
|
26
26
|
c2cwsgiutils/health_check.py,sha256=OhfPcApBht1qtBOX8e8pdeq3QwF4FbgGkofjqpl8GvQ,20068
|
27
|
-
c2cwsgiutils/index.py,sha256=
|
27
|
+
c2cwsgiutils/index.py,sha256=km_iP4w3oMqlI04e2RIetknAVxooO5p2ThZ8LcjBaU0,16751
|
28
28
|
c2cwsgiutils/loader.py,sha256=vU7yEobl9TlSFZwdLI2eF1ceUJ6xgiu2re31HA5sw1g,623
|
29
29
|
c2cwsgiutils/logging_view.py,sha256=d0UkvYRGkVUMY9_vbjEzXmm8-6CCec2B43a3mJAqWyw,3370
|
30
30
|
c2cwsgiutils/models_graph.py,sha256=q5dW_gZ5iUZCzBya5Kpy57y9oqsG-rGi9AvrXCDgYqs,2679
|
@@ -60,8 +60,8 @@ c2cwsgiutils/stats_pyramid/_db_spy.py,sha256=A61t6VKIrRRIjbyZTldmAUl_Q3ZDVFYqyxj
|
|
60
60
|
c2cwsgiutils/stats_pyramid/_pyramid_spy.py,sha256=sbkXXdzzylnd6XHzegJdshD0mzCY8RLsL1WncclsFfE,3208
|
61
61
|
c2cwsgiutils/templates/index.html.mako,sha256=Ey9ppHLe-eFGYXYPV5Z2WbMBSif86sYPiTviksnG7TI,1362
|
62
62
|
c2cwsgiutils/version.py,sha256=1ghPu-aKMJdfCSUrxgBENNqNQ-7JMKJr6tS14dDmW4Q,3110
|
63
|
-
c2cwsgiutils-6.2.0.
|
64
|
-
c2cwsgiutils-6.2.0.
|
65
|
-
c2cwsgiutils-6.2.0.
|
66
|
-
c2cwsgiutils-6.2.0.
|
67
|
-
c2cwsgiutils-6.2.0.
|
63
|
+
c2cwsgiutils-6.2.0.dev4.dist-info/LICENSE,sha256=r7ueGz9Fl2Bv3rmeQy0DEtohLmAiufRaCuv6Y5fyNhE,1304
|
64
|
+
c2cwsgiutils-6.2.0.dev4.dist-info/METADATA,sha256=v0lPoe20dGgHhqeIBoAF9_L--TtuGZJhJd6d7Cii8Dk,34409
|
65
|
+
c2cwsgiutils-6.2.0.dev4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
66
|
+
c2cwsgiutils-6.2.0.dev4.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
|
67
|
+
c2cwsgiutils-6.2.0.dev4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|