c2cwsgiutils 6.2.0.dev2__py3-none-any.whl → 6.2.0.dev6__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.
@@ -26,13 +26,13 @@ class Filter:
26
26
  _handle_others(environ)
27
27
 
28
28
  if "C2CWSGIUTILS_FORCE_PROTO" in os.environ:
29
- os.environ["wsgi.url_scheme"] = os.environ.pop("C2CWSGIUTILS_FORCE_PROTO")
29
+ environ["wsgi.url_scheme"] = os.environ["C2CWSGIUTILS_FORCE_PROTO"]
30
30
  if "C2CWSGIUTILS_FORCE_HOST" in os.environ:
31
- os.environ["HTTP_HOST"] = os.environ.pop("C2CWSGIUTILS_FORCE_HOST")
31
+ environ["HTTP_HOST"] = os.environ["C2CWSGIUTILS_FORCE_HOST"]
32
32
  if "C2CWSGIUTILS_FORCE_SERVER_NAME" in os.environ:
33
- os.environ["SERVER_NAME"] = os.environ.pop("C2CWSGIUTILS_FORCE_SERVER_NAME")
33
+ environ["SERVER_NAME"] = os.environ["C2CWSGIUTILS_FORCE_SERVER_NAME"]
34
34
  if "C2CWSGIUTILS_FORCE_REMOTE_ADDR" in os.environ:
35
- os.environ["REMOTE_ADDR"] = os.environ.pop("C2CWSGIUTILS_FORCE_REMOTE_ADDR")
35
+ environ["REMOTE_ADDR"] = os.environ["C2CWSGIUTILS_FORCE_REMOTE_ADDR"]
36
36
 
37
37
  return self._application(environ, start_response)
38
38
 
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
- _additional_title: Optional[str] = None
48
- _additional_noauth: list[str] = []
49
- _additional_auth: list[str] = []
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 _additional_title is not None and (has_access or _additional_noauth):
163
- body += _additional_title
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(_additional_auth)
167
+ body += "\n".join(additional_auth)
168
168
  body += "\n"
169
169
 
170
- body += "\n".join(_additional_noauth)
170
+ body += "\n".join(additional_noauth)
171
171
 
172
172
  settings = request.registry.settings
173
173
  auth_type_ = auth_type(settings)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cwsgiutils
3
- Version: 6.2.0.dev2
3
+ Version: 6.2.0.dev6
4
4
  Summary: Common utilities for Camptocamp WSGI applications
5
5
  Home-page: https://github.com/camptocamp/c2cwsgiutils
6
6
  License: BSD-2-Clause
@@ -13,7 +13,7 @@ c2cwsgiutils/broadcast/interface.py,sha256=AkDT_m0eXTQp3mmMLf9KRtpXnWoVhJpb_UNjC
13
13
  c2cwsgiutils/broadcast/local.py,sha256=kQp6OWcRU-nx7uEBAXwdMum_rOz3LSj6fyL_R12QrMY,1139
14
14
  c2cwsgiutils/broadcast/redis.py,sha256=xCcGSr7jr6QdFM-YZzFFaySQis1xKb0HqqbGR8qjSNM,5202
15
15
  c2cwsgiutils/broadcast/utils.py,sha256=0fQZXPu3p_5LEJpGenJwiiMxECQjJhjZBjIkBk8h-ng,272
16
- c2cwsgiutils/client_info.py,sha256=wkKhEF3WF9xf6aGTovrxh6C1QnZaW0Z5vwQ5zQsWfvw,3944
16
+ c2cwsgiutils/client_info.py,sha256=rvXQLyhma0kPoWQINwUzrxfG2gGIjQDNrxPUDRGJxpA,3916
17
17
  c2cwsgiutils/config_utils.py,sha256=vkBu-3GQsE94NOBOvT5FE-Ij29EUrKnDsmdUdtu_yzo,1524
18
18
  c2cwsgiutils/coverage_setup.py,sha256=BrdjYUmqYl1C-gHuKA7EI5gbQs8Dtdeb2eZKtzr-5L0,909
19
19
  c2cwsgiutils/db.py,sha256=JT5F9Dqm2r0Jsh3w3CX79ngAUtakMLpf1secfN1nQnk,16106
@@ -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=VeCqbSvlJvQDwN213qqjQyhi7wb6eWLy0IKkApn-ufk,16759
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.dev2.dist-info/LICENSE,sha256=r7ueGz9Fl2Bv3rmeQy0DEtohLmAiufRaCuv6Y5fyNhE,1304
64
- c2cwsgiutils-6.2.0.dev2.dist-info/METADATA,sha256=VFAKh08JW-Ag59rKqIbb2cupn_dpSKsVn8GX-sqhRK0,34409
65
- c2cwsgiutils-6.2.0.dev2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
66
- c2cwsgiutils-6.2.0.dev2.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
67
- c2cwsgiutils-6.2.0.dev2.dist-info/RECORD,,
63
+ c2cwsgiutils-6.2.0.dev6.dist-info/LICENSE,sha256=r7ueGz9Fl2Bv3rmeQy0DEtohLmAiufRaCuv6Y5fyNhE,1304
64
+ c2cwsgiutils-6.2.0.dev6.dist-info/METADATA,sha256=4AWBbQtYHLBI1DdVRILLdgLFfTpsCxLby8e9rFlgNJg,34409
65
+ c2cwsgiutils-6.2.0.dev6.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
66
+ c2cwsgiutils-6.2.0.dev6.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
67
+ c2cwsgiutils-6.2.0.dev6.dist-info/RECORD,,