c2cwsgiutils 6.1.4__py3-none-any.whl → 6.1.4.dev2__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/debug/_views.py +4 -11
- {c2cwsgiutils-6.1.4.dist-info → c2cwsgiutils-6.1.4.dev2.dist-info}/METADATA +1 -1
- {c2cwsgiutils-6.1.4.dist-info → c2cwsgiutils-6.1.4.dev2.dist-info}/RECORD +6 -6
- {c2cwsgiutils-6.1.4.dist-info → c2cwsgiutils-6.1.4.dev2.dist-info}/LICENSE +0 -0
- {c2cwsgiutils-6.1.4.dist-info → c2cwsgiutils-6.1.4.dev2.dist-info}/WHEEL +0 -0
- {c2cwsgiutils-6.1.4.dist-info → c2cwsgiutils-6.1.4.dev2.dist-info}/entry_points.txt +0 -0
c2cwsgiutils/debug/_views.py
CHANGED
@@ -189,17 +189,10 @@ def _show_refs(request: pyramid.request.Request) -> pyramid.response.Response:
|
|
189
189
|
args["extra_info"] = lambda obj: f"{get_size(obj) / 1024:.3f} kb\n{id(obj)}"
|
190
190
|
|
191
191
|
result = StringIO()
|
192
|
-
if request.params.get("backrefs", "")
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
if "filter" in args:
|
198
|
-
old_filter = args["filter"]
|
199
|
-
args["filter"] = lambda x: old_filter(x) and new_filter(x)
|
200
|
-
else:
|
201
|
-
args["filter"] = new_filter
|
202
|
-
objgraph.show_backrefs(objs, output=result, **args)
|
192
|
+
if request.params.get("backrefs", "") != "":
|
193
|
+
objgraph.show_backrefs(objs, output=result, **args)
|
194
|
+
else:
|
195
|
+
objgraph.show_refs(objs, output=result, filter=lambda x: not objgraph.inspect.isclass(x), **args)
|
203
196
|
|
204
197
|
request.response.content_type = "text/vnd.graphviz"
|
205
198
|
request.response.text = result.getvalue()
|
@@ -20,7 +20,7 @@ c2cwsgiutils/db.py,sha256=JT5F9Dqm2r0Jsh3w3CX79ngAUtakMLpf1secfN1nQnk,16106
|
|
20
20
|
c2cwsgiutils/db_maintenance_view.py,sha256=58F-p9drkhCI99GoLRPIqT5U-Pm8ckSSUEl-tNxMmjU,3088
|
21
21
|
c2cwsgiutils/debug/__init__.py,sha256=GkYNt2fU5PFykw9HmqPEwZrF2mTJumjSu54pp38EhOM,1325
|
22
22
|
c2cwsgiutils/debug/_listeners.py,sha256=RZYwQRh86rU-Vtjxc3xOZL2A8D_5LHIBd-xWAMQCrj0,4421
|
23
|
-
c2cwsgiutils/debug/_views.py,sha256=
|
23
|
+
c2cwsgiutils/debug/_views.py,sha256=53BflHhtLwtgS2uFJYg2jUEZaFhCI-iYWfSxu5B2swc,7554
|
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
|
@@ -60,8 +60,8 @@ c2cwsgiutils/stats_pyramid/_db_spy.py,sha256=A61t6VKIrRRIjbyZTldmAUl_Q3ZDVFYqyxj
|
|
60
60
|
c2cwsgiutils/stats_pyramid/_pyramid_spy.py,sha256=mRiOmQXV9x8JjkGV4MsaC7sD3qO6dWUTog0bharLLD0,3517
|
61
61
|
c2cwsgiutils/templates/index.html.mako,sha256=Ey9ppHLe-eFGYXYPV5Z2WbMBSif86sYPiTviksnG7TI,1362
|
62
62
|
c2cwsgiutils/version.py,sha256=1ghPu-aKMJdfCSUrxgBENNqNQ-7JMKJr6tS14dDmW4Q,3110
|
63
|
-
c2cwsgiutils-6.1.4.dist-info/LICENSE,sha256=r7ueGz9Fl2Bv3rmeQy0DEtohLmAiufRaCuv6Y5fyNhE,1304
|
64
|
-
c2cwsgiutils-6.1.4.dist-info/METADATA,sha256=
|
65
|
-
c2cwsgiutils-6.1.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
66
|
-
c2cwsgiutils-6.1.4.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
|
67
|
-
c2cwsgiutils-6.1.4.dist-info/RECORD,,
|
63
|
+
c2cwsgiutils-6.1.4.dev2.dist-info/LICENSE,sha256=r7ueGz9Fl2Bv3rmeQy0DEtohLmAiufRaCuv6Y5fyNhE,1304
|
64
|
+
c2cwsgiutils-6.1.4.dev2.dist-info/METADATA,sha256=kIQabHFfvt8Suu9p224EdAWrLTzoQBjpraC5Q3s9zSY,34401
|
65
|
+
c2cwsgiutils-6.1.4.dev2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
66
|
+
c2cwsgiutils-6.1.4.dev2.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
|
67
|
+
c2cwsgiutils-6.1.4.dev2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|